Talk:Extensible prime generator: Difference between revisions
Content added Content deleted
m (→Off by one?: included a URL for the prime table.) |
GordonBGood (talk | contribs) (comment on "off by one"...) |
||
Line 11: | Line 11: | ||
:: See the webpage <u>[https://primes.utm.edu/lists/small/10000.txt primes.utm.edu/small/10000.txt]</u> (at the very bottom). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:55, 6 January 2019 (UTC) |
:: See the webpage <u>[https://primes.utm.edu/lists/small/10000.txt primes.utm.edu/small/10000.txt]</u> (at the very bottom). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:55, 6 January 2019 (UTC) |
||
::: That just confirms that the correct value is 104,729. The Rust code was wrong; the author forgot that enumerations are zero based in Rust, so one has to ask for item number 9,999 to get the 10,000th prime. I've corrected Rust. |
|||
::: It appears that Seed had a slightly different logic error: it iterated and discarded the primes until the 10,000th one, then printed the next one. I've fixed that, too.--[[User:GordonBGood|GordonBGood]] ([[User talk:GordonBGood|talk]]) 23:25, 6 January 2019 (UTC) |