diff --git a/Project Euler/Prime number 1001 5th.cpp b/Project Euler/Prime number 1001 5th.cpp new file mode 100644 index 0000000..1e1bff4 --- /dev/null +++ b/Project Euler/Prime number 1001 5th.cpp @@ -0,0 +1,37 @@ +#include +#include +#include +using namespace std; + + +int isPrime(int num){ + int i; + + if (num==2) + return 1; + + for (i=2;i