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.

A329761 Primes having only {1, 3, 9} as digits.

Original entry on oeis.org

3, 11, 13, 19, 31, 113, 131, 139, 191, 193, 199, 311, 313, 331, 911, 919, 991, 1193, 1319, 1399, 1913, 1931, 1933, 1993, 1999, 3119, 3191, 3313, 3319, 3331, 3391, 3911, 3919, 3931, 9133, 9199, 9311, 9319, 9391, 9931, 11113, 11119, 11131, 11311, 11393, 11399
Offset: 1

Views

Author

Alois P. Heinz, Nov 20 2019

Keywords

Comments

Original name was: Primes whose product of decimal digits is a power of 3.
Primes whose digit set is a subset of {1,3,9}.

Crossrefs

Subsequence of A030096.

Programs

  • Magma
    [p: p in PrimesUpTo(12000) | Set(Intseq(p)) subset [1,3,9]]; // Vincenzo Librandi, Jan 02 2019
  • Mathematica
    Select[Prime[Range[1500]],IntegerQ[Log[3,Times@@IntegerDigits[#]]]&] (* or *) Table[Select[FromDigits/@Tuples[{1,3,9},n],PrimeQ],{n,5}]// Flatten (* Harvey P. Dale, Dec 31 2019 *)

Formula

{ A000040 } intersect { A174813 }.
a(n) in { A000040 } and A007954(a(n)) in { A000244 }.

Extensions

Name changed by Sean A. Irvine, Jul 20 2025