Rare numbers: Difference between revisions
Content deleted Content added
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) No edit summary |
||
Line 3,394: | Line 3,394: | ||
=={{header|langur}}== |
=={{header|langur}}== |
||
== not optimized == |
=== not optimized === |
||
It could look something like the following (ignoring whatever optimizations the other examples are using), if it was fast enough. I did not have the time/processor to test finding the first 5. The .israre() function returns the right answer, tested with individual numbers. |
It could look something like the following (ignoring whatever optimizations the other examples are using), if it was fast enough. I did not have the time/processor to test finding the first 5. The .israre() function returns the right answer, tested with individual numbers. |
||