Find if the given integer is prime number
If a given number is only divisible by 1 or by itself, it is called as a prime number.
If any number is given is 'x', we must decide the number by 2, 3, 5, 7, 11, 13, .. and if get a whole number as outcome of division then number is not a prime number.
Following are the examples of prime number,
2,3,5,7,11,13,17,19, 23,....
Comments
Leave a comment