Talk:N-smooth numbers: Difference between revisions

From Rosetta Code
Content added Content deleted
 
Line 1: Line 1:
== Disagreement among implementations ==
== Disagreement among implementations ==


There seems to be some disagreement among the various implementations about what the 30000th value is for the option sub-task. Perl 6 and Julia are the same, but Factor and REXX have two different answers. I've checked the Perl 6 several times and can't see where it may be wrong. (That is not to say that it ''isn't'' necessarily, I just can't find a problem yet.) And I am not familiar enough with Julia, Factor or REXX to be able to verify those.
There seems to be some disagreement among the various implementations about what the 30000th value is for the optional sub-task. Perl 6 and Julia are the same, but Factor and REXX have two different answers. I've checked the Perl 6 several times and can't see where it may be wrong. (That is not to say that it ''isn't'' necessarily, I just can't find a problem yet.) And I am not familiar enough with Julia, Factor or REXX to be able to verify those.


To help find the disagreement, I've uploaded several text files containing the first 30,000: [https://github.com/thundergnat/rc/blob/master/resouces/503.txt 503-smooth], [https://github.com/thundergnat/rc/blob/master/resouces/509.txt 509-smooth] and [https://github.com/thundergnat/rc/blob/master/resouces/521.txt 521-smooth] numbers as determined by Perl 6. Each file has 30,000 lines with one number on each line. The last line should be the 30,000th.
To help find the disagreement, I've uploaded several text files containing the first 30,000: [https://github.com/thundergnat/rc/blob/master/resouces/503.txt 503-smooth], [https://github.com/thundergnat/rc/blob/master/resouces/509.txt 509-smooth] and [https://github.com/thundergnat/rc/blob/master/resouces/521.txt 521-smooth] numbers as determined by Perl 6. Each file has 30,000 lines with one number on each line. The last line should be the 30,000th.

Revision as of 08:57, 29 August 2019

Disagreement among implementations

There seems to be some disagreement among the various implementations about what the 30000th value is for the optional sub-task. Perl 6 and Julia are the same, but Factor and REXX have two different answers. I've checked the Perl 6 several times and can't see where it may be wrong. (That is not to say that it isn't necessarily, I just can't find a problem yet.) And I am not familiar enough with Julia, Factor or REXX to be able to verify those.

To help find the disagreement, I've uploaded several text files containing the first 30,000: 503-smooth, 509-smooth and 521-smooth numbers as determined by Perl 6. Each file has 30,000 lines with one number on each line. The last line should be the 30,000th.

If another author could check against these files and let me know where we differ it would be appreciated. --Thundergnat (talk) 08:56, 29 August 2019 (UTC)