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.

A108384 Primes p such that p's set of distinct digits is {1,7,9}.

Original entry on oeis.org

179, 197, 719, 971, 1979, 1997, 7919, 9719, 9791, 11197, 11719, 11779, 11971, 17191, 17791, 17911, 17971, 17977, 19717, 19777, 19979, 19997, 71119, 71191, 71719, 71917, 71971, 71999, 77191, 77719, 79111, 91711, 91771, 91997, 97117, 97171
Offset: 1

Views

Author

Rick L. Shepherd, Jun 01 2005

Keywords

Crossrefs

Cf. A108382 ({1, 3, 7}), A108383 ({1, 3, 9}), A108385 ({3, 7, 9}), A108386 ({1, 3, 7, 9}), A030096 (Primes whose digits are all odd).

Programs

  • Mathematica
    Flatten[Table[Select[FromDigits/@Select[Tuples[{1,7,9},n],Union[#]=={1,7,9}&],PrimeQ],{n,3,5}]] (* Harvey P. Dale, Feb 15 2016 *)
  • PARI
    lista(nn) = forprime(p=179, nn, if(vecsort(digits(p), , 8)==[1, 7, 9], print1(p, ", "))) \\ Iain Fox, Oct 25 2017