TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lehmer sieve

52 pointsby fabricelealover 11 years ago

3 comments

gajomiover 11 years ago
Very cool. I thought to myself, before clicking on the article, "this is Hacker News, so its probably some interesting number theoretic sieve... but then again there are a lot of people who like to cook so maybe its some kind of novel mechanical sieve". So it was quite satisfying to see discover that it was BOTH in some sense.
评论 #7013260 未加载
jerfover 11 years ago
&quot;Lehmer sieves were very fast, in one particular case factoring 2^93 + 1 in 3 seconds.&quot;<p>Impressive. I wondered how fast my computer could do it. Here&#x27;s the GNU coreutils factor:<p><pre><code> $ time factor 9903520314283042199192993793 9903520314283042199192993793: 3 3 529510939 715827883 2903110321 real 0m0.007s user 0m0.004s sys 0m0.000s </code></pre> Still impressive. This led me down factor&#x27;s documentation to the Pollard Rho algorithm: <a href="http://en.wikipedia.org/wiki/Pollard%27s_rho_algorithm" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Pollard%27s_rho_algorithm</a>
darkbotover 11 years ago
So D-wave is basically a Lehmer sieve?