package proje.pkg1.den.pkg100.e.kadar.asal.sayilar;

public class Proje1Den100EKadarAsalSayilar {

public static boolean AsalSayilar(int sayi){
    for (int i = 2; i<sayi;i++)
    {
        if (sayi%i==0){
            return false;
        }
    }
    return true;
}

public static void main(String[] args) {
    for (int i = 2;i<1000;i++)
    {
        if (AsalSayilar(i))
        {
            System.out.println(i);
        }
    }
}
}