is prime simple bool

PHOTO EMBED

Fri Aug 20 2021 15:57:20 GMT+0000 (UTC)

Saved by @faisals

bool isPrime(int a){
    
    for(int i=2;i*i<=a;i++){
        if(a%i==0){
            return false;
        }
    }
    return true;
    
}
content_copyCOPY

https://codeforces.com/problemset/status?my