cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A107612 Primes with digital product = 2.

Original entry on oeis.org

2, 211, 2111, 111121, 111211, 112111, 1111211, 1111111121, 1111211111, 1121111111, 111111211111, 111211111111, 2111111111111, 111111111111112111, 111111112111111111, 111111211111111111, 112111111111111111
Offset: 1

Views

Author

Zak Seidov, May 17 2005

Keywords

Comments

Corresponding indices of primes in A107611. Cf. A053666, A101987.

Crossrefs

Programs

  • 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 *)

Formula

A107612(n) = prime(A107611(n)).

Extensions

More terms from Robert G. Wilson v and James Sellers, May 19 2005