New Paste :: Recent Pastes:: No Line Numbers
Prime number test by DELTRON
1234567891011
bool isprime(int n) { float a=n; int x=1, c=(int)(sqrt(a)); while (x++) { if (x>c) return true; if (!((a/x)>(int)(a/x))) return false; } }