RosettaCodeData/Task/Emirp-primes/00-TASK.txt

26 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

An   ''emirp''   ('''prime''' spelled backwards)   are primes that when reversed   (in their decimal representation)   are a different prime.
(This rules out palindromic primes.)
;Task:
::*   show the first   twenty   emirps
::*   show all emirps between   7,700   and   8,000
::* &nbsp; show the &nbsp; 10,000<sup>th</sup> &nbsp; emirp
In each list, the numbers should be in order.
Invoke the (same) program once per task requirement, this will show what limit is used as the upper bound for calculating surplus (regular) primes.
The specific method of how to determine if a range or if specific values are to be shown will be left to the programmer.
;See also:
* &nbsp; [https://en.wikipedia.org/wiki/Emirp Wikipedia, Emirp].
* &nbsp; [http://primes.utm.edu/glossary/xpage/emirp.html The Prime Pages, emirp].
* &nbsp; [http://mathworld.wolfram.com/Emirp.html Wolfram MathWorld&trade;, Emirp].
* &nbsp; [https://oeis.org/A006567 The OnLine Encyclopedia of Integer Sequences, emirps (A6567)].
<br><br>