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
please send me the code for multiplying sparse matrix using c
What is New modifiers?
What is the difference between void main and main in c?
What is c basic?
What is the right type to use for boolean values in c? Is there a standard type?
What is 1f in c?
What is scope rule of function in c?
What is a example of a variable?
How can I write functions that take a variable number of arguments?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is signed and unsigned?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
what is the syallabus of computer science students in group- 1?
Why & is used in c?
What are the advantages of using macro in c language?