login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A107715 Primes whose decimal representation contains only digits from the set {0,1,2,3}. 7
2, 3, 11, 13, 23, 31, 101, 103, 113, 131, 211, 223, 233, 311, 313, 331, 1013, 1021, 1031, 1033, 1103, 1123, 1201, 1213, 1223, 1231, 1301, 1303, 1321, 2003, 2011, 2111, 2113, 2131, 2203, 2213, 2221, 2311, 2333, 3001, 3011, 3023, 3121, 3203, 3221, 3301, 3313 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
Select[Prime[Range[500]], Max[IntegerDigits[#]]<4&] (* Harvey P. Dale, May 09 2012 *)
Select[FromDigits/@Tuples[{0, 1, 2, 3}, 4], PrimeQ] (* Harvey P. Dale, Mar 06 2016 *)
PROG
(Haskell)
a107715 n = a107715_list !! (n-1)
a107715_list = filter ((== 1) . a010051) a007090_list
-- Reinhard Zumkeller, Aug 11 2011
(Python) from gmpy2 import digits
from sympy import isprime
[int(digits(n, 4)) for n in range(1000) if isprime(int(digits(n, 4)))] # Chai Wah Wu, Jul 31 2014
CROSSREFS
Cf. A036953 (primes containing digits from set {0, 1, 2}).
Sequence in context: A036956 A076503 A004678 * A090707 A062350 A163498
KEYWORD
base,nonn
AUTHOR
Rick L. Shepherd, May 22 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 10:11 EDT 2024. Contains 371935 sequences. (Running on oeis4.)