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.

Prime-generating fractions

86 pointsby lesterbuckover 11 years ago

4 comments

pontifierover 11 years ago
The way this is constructed is interesting, but it doesn&#x27;t appear that a real sequence to generate primes is required, just a list of them:<p>D=0<p>SUM=0<p>for n:<p><pre><code> D += num_digits(PRIME[N]) &#x2F;&#x2F; +1 for a nice single 0 between them SUM += PRIME[n]&#x2F;(10^D) print fraction(SUM)</code></pre>
评论 #6541258 未加载
评论 #6541069 未加载
abecedariusover 11 years ago
From the title I expected <a href="http://en.wikipedia.org/wiki/FRACTRAN" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;FRACTRAN</a> (see the list of fractions at the top).
mathattackover 11 years ago
It borrows one problem from Project Euler and seems to scream for another.
yeukhonover 11 years ago
Okay. Very interesting. For those who don&#x27;t understand like me, what is the technical use of this? Where will this be used? Are we somehow going to use this in cryptography?
评论 #6541971 未加载