26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
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
|
||
::* show the 10,000<sup>th</sup> 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:
|
||
* [https://en.wikipedia.org/wiki/Emirp Wikipedia, Emirp].
|
||
* [http://primes.utm.edu/glossary/xpage/emirp.html The Prime Pages, emirp].
|
||
* [http://mathworld.wolfram.com/Emirp.html Wolfram MathWorld™, Emirp].
|
||
* [https://oeis.org/A006567 The On‑Line Encyclopedia of Integer Sequences, emirps (A6567)].
|
||
<br><br>
|
||
|