Created
January 28, 2014 07:13
-
-
Save madan712/8663442 to your computer and use it in GitHub Desktop.
Java program to find prime numbers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// Hope this program is easy to understand and clear enough
// I wrote this program to check if whether a given number is prime or not.
// If the number is a prime number, the function returns 1 else it returns 0.
public class Is_NPrime
{
public static int IsPrime (int N)
{
int Dividers = 0;
int ReturnValue = 1;
}