listing prime numbers 1-100
807589Nov 23 2006 — edited Sep 4 2008I'm making a program which outputs all prime numbers between one and a hundred, without just using System.out.println ("...") to show each one. I need to use for and loop until it hits 97, which is the last prime number before one hundred..
Does anybody know a formula I could run an int through to display all the primes, or any way i could do this?