Definition of Ultraprimes Additive Primes:
Given an integer x, compute all the additive primes amongst the first x prime numbers, with 2 being considered both the first prime and additive prime number. The numbers are represented in base 10.
- The output consists of all the additive primes amongst the first
x primes 0 < x < 151, for this challenge, for functionality purposes - Since the additive primes are all integers, decimals are not allowed (e.g.: you should output
2, not 2.0) and they must not be displayed as a fraction.
The first 10 primes are 2 3 5 7 11 13 17 19 23 29, and only 2 3 5 7 11 23 29 have their sum of digits prime numbers, those being, respectively 2,3,5,7,2,5,11, so they are additive primes