This must be given to you by your teacher as an exercise in learning how to use a "spreadsheet" or how to write a computer code(if you are studying coding) to see if you can do it! At least, that is what I think! The number of primes between 1 and 1,000,000 can be esily obtained from numerous sources on the Internet and elsewhere. However, summing them all up is quite a different matter altogether!.
If you have any experience in coding, in any programming language, this is a trivial matter! Since I have some experience in coding in a couple of languages, this is a very simple project which takes a couple of minute to write, and a couple of milliseconds to run. As a result, here are the numbers you are looking for:
Number of primes between 1 and 1,000,000 = 78,498. And their total sum =37,550,402,023.
Good luck!.