Java Program of Prime Number

prime Number means a number a number which divide by 1 or itself  i.e. 2,3,5,7,11,13,17,19,23 etc..

write a java program a given integer value is prime or not 

Output of  Prime Number in Java

E:>javac Prime.java

// Note : ignored

// Deprecated API ignored message

// run java command

E:>java Prime

Enter any integer value: 37

37  is  Prime Number


write a java program   print prime number from 1 to 1000

Output of  Prime Number from 1 to 1000  in Java 

Prime Numbers
Prime Numbers
(Visited 64 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image