[go: up one dir, main page]

login
A107612
Primes with digital product = 2.
16
2, 211, 2111, 111121, 111211, 112111, 1111211, 1111111121, 1111211111, 1121111111, 111111211111, 111211111111, 2111111111111, 111111111111112111, 111111112111111111, 111111211111111111, 112111111111111111
OFFSET
1,1
COMMENTS
Corresponding indices of primes in A107611. Cf. A053666, A101987.
LINKS
FORMULA
A107612(n) = prime(A107611(n)).
MAPLE
for i from 0 to 30 do it:=sum(10^j, j=0..i): for k from 0 to i do if isprime(it+10^k) then printf(`%d, `, it+10^k) fi: od:od: (Sellers)
MATHEMATICA
Flatten[ Table[ Select[ Sort[ FromDigits /@ Permutations[ Flatten[{2, Table[1, {n}]}]]], PrimeQ[ # ] &], {n, 0, 19}]] (* Robert G. Wilson v, May 19 2005 *)
Select[Flatten[Table[FromDigits/@Permutations[PadRight[{2}, n, 1]], {n, 20}]], PrimeQ]//Sort (* Harvey P. Dale, May 28 2017 *)
KEYWORD
base,nonn
AUTHOR
Zak Seidov, May 17 2005
EXTENSIONS
More terms from Robert G. Wilson v and James A. Sellers, May 19 2005
STATUS
approved