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
Why is main function so important?
How can I change their mode to binary?
What is property type c?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Can we change the value of static variable in c?
How many types of sorting are there in c?
Why void main is used in c?
What are the various types of control structures in programming?
How can you pass an array to a function by value?
Is this program statement valid? INT = 10.50;
Why we use conio h in c?
What does the c in ctime mean?
What is character set?
How do shell structures work?
What is a union?