Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 234 Bytes

Q1.md

File metadata and controls

13 lines (13 loc) · 234 Bytes
public static boolean iskSNT(int x){
    if(x<2)
        return false;
    int sqrt = (int) Math.sqrt(x);
    for (int i = 2; i <= sqrt; i++) {
        if (x % i == 0) {
        return false;
    }
    }
    return true;
}