The sum of the primes below 10 is 2+3+5+7=17. How to find the sum of all the primes below 1000 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

The sum of the primes below 10 is 2+3+5+7=17. How to find the sum of all the primes below 1000

c#

27th Oct 2017, 5:55 PM
Hasalanka Nagahawaththa
Hasalanka Nagahawaththa - avatar
2 Answers
+ 3
I only got a code for finding primes in java, but maybe you can use it anyways.
27th Oct 2017, 5:58 PM
Jonas Schröter
Jonas Schröter - avatar
+ 2
try it using c#
8th Jan 2018, 6:51 AM
Hasalanka Nagahawaththa
Hasalanka Nagahawaththa - avatar