+ 2

How to print prime numbers between two intervals in c++

22nd Jan 2019, 3:49 PM
Affan N Qazi
Affan N Qazi - avatar
2 Answers
+ 4
In my perspective for loop is the best way to do that I can explain Text me in private.
28th Jan 2019, 11:08 AM
InfinityAJ
InfinityAJ - avatar
+ 1
Here is a very fast prime implementation, you may look for primes in the table, just create a table containint numbers between 1 and the max you require. https://code.sololearn.com/cVSSwp3B5s14/#cpp
3rd Feb 2019, 2:11 PM
Manuel Soto
Manuel Soto - avatar