/// Name: Ali Kurland /// Period: 6 /// Program Name: Finding Prime Numbers /// File Name: Prime.java /// Date Finished: 12/9/2015 public class Prime { public static void main( String[] args ) { for ( int n=2; n<21; n++ ) { if (isPrime(n)) System.out.println( n + " <" ); else System.out.println(n); } } public static boolean isPrime( int n ) { for ( int i=2; i<n; i++ ) { if ( ( n % i ) == 0 ) return false; } return true; } }