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


Please Help Members By Posting Answers For Below Questions

#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

633


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1269


What are conditional operators in C?

630


Do pointers take up memory?

666


What is a pointer and how it is initialized?

613






Explain how do you list a file’s date and time?

621


What are the features of the c language?

652


Is null always equal to 0(zero)?

589


What is an operator?

659


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2230


What is an array in c?

599


i got 75% in all semester am i eligible for your company

1743


What is the g value paradox?

650


What is non linear data structure in c?

579


What is the right type to use for boolean values in c?

589