"Basic Exercise" Erato color-sieve method for prime numbers

Source: Internet
Author: User

ran a quality tables, the hash may be able to use

First run is within 0x3f3f3f3f, this number is equal to more than 1061109.567 trillion a little result what software can not open so big file Leo said there are more than 100 million prime numbers

And then I ran out of 10 million.

Put the code on.


The last time I forgot the ancient poetry ... or just two sentences.

--The wind and rain in the night, how many flowers fall
--have about not come to the midnight, idle Knock Chess pieces Fall Snuff

Copyright NOTICE: Reprint Please specify source [ametake Copyright]http://blog.csdn.net/ametake Welcome to see

"Basic Exercise" Erato color-sieve method for prime numbers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.