Created
April 28, 2016 09:51
-
-
Save rabiulcste/add74b8cf5cf5eead5bc977e439154ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool isPrime(int n) { | |
if(n < 2) return false; | |
for(int i = 2; i < sqrt(n); i++) | |
if(n%i == 0) return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment