Talk:Extensible prime generator: Difference between revisions

comment on "off by one"...
m (→‎Off by one?: included a URL for the prime table.)
(comment on "off by one"...)
Line 11:
 
:: See the webpage &nbsp; <u>[https://primes.utm.edu/lists/small/10000.txt primes.utm.edu/small/10000.txt]</u> &nbsp; &nbsp; (at the very bottom). &nbsp; &nbsp; -- [[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)
474

edits