Rare numbers: Difference between revisions

Content deleted Content added
Langurmonkey (talk | contribs)
added langur language example
Langurmonkey (talk | contribs)
Line 3,393: Line 3,393:


=={{header|langur}}==
=={{header|langur}}==

== 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.