+ 2
Challenge
write programme in cpp that could find weather a number is prime or not
6 Answers
+ 4
Firstly, it's "whether" not "weather" đ
Secondly, the algorithm is almost always the same->sieve of erathnostanes
Thirdly, here is my code:
https://code.sololearn.com/cCG0NiHxo8l3/?ref=app
3.1 It is in python sorry
3.2 It gets a list of primes.
+ 3
here you go!
https://code.sololearn.com/cNNTzSL9tlV3/?ref=app
+ 2
Till date I knew that Hatsy is a great poster, now I know that he is also a great commentor...
+ 1
$Vengant check my this code
https://code.sololearn.com/c4xkf0b94cS6/?ref=app
+ 1
This is not to test, but it's a prime series...
https://code.sololearn.com/cNJzc0HN41zd/?ref=app