OFFSET
1,1
COMMENTS
A Yarborough prime is a prime that does not contain digits 0 or 1.
LINKS
Chris C. Caldwell, Yarborough prime
FORMULA
EXAMPLE
a(1) = 23 is a prime, and replacing each of its digits by its cube yields 827, which is also prime. Neither 23 nor 827 contains digits 0 or 1, so both are Yarborough primes.
a(4) = 229 is a prime, and replacing each of its digits by its cube gives 88729, which is also prime. Neither 229 nor 88729 contains digits 0 or 1, so both are Yarborough primes.
29 is a Yarborough prime but 8729 = 7 * 29 * 43, so 29 is not in the sequence.
53 is a Yarborough prime; 12527 is also a prime but not a Yarborough prime (contains digit 1). Hence, 53 is not included in this sequence.
MATHEMATICA
k = 3; Select[Prime[Range[10000]], Min[IntegerDigits[#]] > 1 && Min[IntegerDigits[Flatten[IntegerDigits[(IntegerDigits[#]^k)]]]] > 1 && PrimeQ[FromDigits[Flatten[IntegerDigits[(IntegerDigits[#]^k)]]]] &]
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
K. D. Bajpai, Feb 15 2018
STATUS
approved
