write a c program that if the given number is prime, and
their rearrangement(permute) of that number is also prime.
Ex: Input is "197" is prime
Output: 791,917,179 is also prime.
Please any one tell me tha code for that
Answer Posted / chaskar tejal
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("197 is prime");
if a%2 || a%3||a%5||a%7
getch();
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is a ternary operator in c?
Is c call by value?
define string ?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is structure padding in c?
What are file streams?
How is a macro different from a function?
How was c created?
I have a varargs function which accepts a float parameter?
Explain bit masking in c?
What is the value of h?
how to make a scientific calculater ?
What are runtime error?
Difference between strcpy() and memcpy() function?
a program that can input number of records and can view it again the record