Programming Challenge #1

This is a series of blog posts that offers a series of simple programming challenges as a diversion.  You are allowed to use any language, unless the challenge specifies a specific language that you are to use. Post your source code, compiler version, and OS as a comment. 

Compute the sum of all the prime numbers between 0 and 10,000 and then place that number into the variable named ‘a’. Compute the sum of all the numbers between 0 and 10,000 and then place that number into the variable named ‘b’. Subtract the value in the variable named ‘a’ from the value in the variable named ‘b’.  What is the result?

 

Language: Any

Difficulty: Easy

 

 

 

 

 

This entry was posted in Uncategorized by RBD. Bookmark the permalink.