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