Skip to content

Instantly share code, notes, and snippets.

Created April 1, 2013 02:18
Show Gist options
  • Save anonymous/5282869 to your computer and use it in GitHub Desktop.
Save anonymous/5282869 to your computer and use it in GitHub Desktop.
bool isPrime(int n)
{
for (int j = 2; j < n; j++)
if (n % j == 0)
return false;
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment