public class Prastevilo { static boolean prastevilo(int stevilo) { //najbolj neumna metoda za iskanje prastevil!!! for(int i = 2; i < stevilo; i++) { if(stevilo % i == 0) { return(false); } } return(true); } public static void main(String[] args) { // TODO Auto-generated method stub if(prastevilo(132 )) { System.out.println("JE PRASTEVILO"); } else { System.out.println("NI PRASTEVILO"); } } }