Skip to content

Instantly share code, notes, and snippets.

@mrafayaleem
Created August 30, 2012 11:38
Show Gist options
  • Save mrafayaleem/3526844 to your computer and use it in GitHub Desktop.
Save mrafayaleem/3526844 to your computer and use it in GitHub Desktop.
bool isPrime(int number) {
for(int i = 2; i < number, ++i) {
if(number % i == 0)
return false;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment