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 / sowmya
hello Sir,
If you dont mind, could you exlain that above code
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
List the different types of c tokens?
Write a program to reverse a linked list in c.
What is .obj file in c?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
Write a program to generate random numbers in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Is fortran faster than c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What does typeof return in c?
Which is the best website to learn c programming?
What is the use of typedef in structure in c?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is difference between structure and union with example?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }