diff --git a/Solutions/Summation_of_primes.cpp b/Solutions/Summation_of_primes.cpp new file mode 100644 index 0000000..5e9530b --- /dev/null +++ b/Solutions/Summation_of_primes.cpp @@ -0,0 +1,23 @@ +#include +using namespace std; +int main() +{ + int n,sum=0,i,j,c=0; + cin>>n; + for(i=2;i<=n;i++) + { + c=0; + for(j=2;j