OFFSET
1,1
COMMENTS
None of the numbers in the sequence can have a digit 0, 4, 6, 8 or 9. The digits are all 1's, or there is one digit 2, 3, 5 or 7 and all the others are 1's.
A variant ofA046703where the "all '1's" (repunit primes R(k) with k inA004023:R(2) = 11, R(19),...) are excluded. -M. F. Hasler,Apr 22 2019
Contains primes inA028842as a subset. -M. F. Hasler,Apr 23 2019
FORMULA
MATHEMATICA
Select[Prime[Range[10^6]], PrimeQ[Times@@IntegerDigits[#]]||Times@@IntegerDigits[#]==1&] (*James C. McMahon,Sep 24 2024 *)
PROG
(PARI)
select( is_A117835(n)=isprime(n)&&(isprime(n=vecprod(digits(n)))||n==1), [0..999]) \\ In older PARI versions, vecprod=factorback. \\M. F. Hasler,Apr 23 2019
(PARI)
next_A117835(n)={until( isprime(n), my(d=digits(n)); n=if(n<3||Set(d)==[1], n+1, fromdigits(apply(t->if(t<2, 1, t<7, nextprime(t+1), 11), d)))); n}
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo ), Apr 30 2006
EXTENSIONS
Name changed, following a remark fromZak Seidov,and edited byM. F. Hasler,Apr 22 2019
STATUS
approved