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

18 lines
734 B
Plaintext

;Definitions
In mathematics, '''additive primes''' are prime numbers for which the sum of their decimal digits are also primes.
;Task
Write a program to determine (and show here) all '''additive primes''' less than '''500'''.
Optionally, show the '''number''' of additive primes.
;Also see:
:*   the OEIS entry:   [https://oeis.org/A046704 A046704 additive primes].
:*   the prime-numbers entry:   [https://prime-numbers.info/list/first-100-additive-primes additive primes].
:*   the geeks for geeks entry: [https://www.geeksforgeeks.org/additive-prime-number/ additive prime number].
:*   the prime-numbers fandom: [https://prime-numbers.fandom.com/wiki/Additive_Primes additive primes].
<br><br>