public static boolean primTest( int zahl ) { int z = zahl; int i=2; int rest=0; while (i<=z/2) { rest=z%i; i++; if( rest == 0 ) { return false; } } return true;}