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
#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); }
#include
What are conditional operators in C?
Do pointers take up memory?
What is a pointer and how it is initialized?
Explain how do you list a file’s date and time?
What are the features of the c language?
Is null always equal to 0(zero)?
What is an operator?
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.
What is an array in c?
i got 75% in all semester am i eligible for your company
What is the g value paradox?
What is non linear data structure in c?
What is the right type to use for boolean values in c?