Prime Number - System print all the prime numbers ...

Guys , it's me again !

How to write a java program for following question :

" A prime number (or a prime) is a natural number which has exactly two distinct natural number divisors: 1 and itself. Alex have problem with Prime Number. He would like system to print all the prime number until the number he entered. "

Alex who? I thought it was Samantha...

Who's Alex? Anyway, again, this is not "CODE-R-US". Somebody, either you or Alex, has to show some effort, so what have you done so far? What ideas do you have? What have you tried?

Luck,

CJSL