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!)
A260224 Primes that contain only the digits (1, 3, 5). 2
3, 5, 11, 13, 31, 53, 113, 131, 151, 311, 313, 331, 353, 1151, 1153, 1511, 1531, 1553, 3313, 3331, 3511, 3533, 5113, 5153, 5333, 5351, 5531, 11113, 11131, 11311, 11351, 11353, 11551, 13151, 13313, 13331, 13513, 13553, 15131, 15313, 15331, 15511, 15551 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A020451, A020453 and A020462 are subsequences.
LINKS
MATHEMATICA
Select[Prime[Range[3 10^3]], Complement[IntegerDigits[#], {3, 5, 1}]=={} &]
Select[Flatten[Table[FromDigits/@Tuples[{1, 3, 5}, n], {n, 5}]], PrimeQ] (* Harvey P. Dale, Mar 03 2020 *)
PROG
(Magma) [p: p in PrimesUpTo(40000) | Set(Intseq(p)) subset [3, 5, 1]];
(Python)
from gmpy2 import is_prime, mpz
from itertools import product
A260224_list = [int(''.join(x)) for n in range(1, 10) for x in product('135', repeat=n) if is_prime(mpz(''.join(x)))] # Chai Wah Wu, Jul 21 2015
CROSSREFS
Cf. Similar sequences listed in A260223.
Sequence in context: A216553 A250298 A361575 * A105071 A089251 A147568
KEYWORD
nonn,easy,base
AUTHOR
Vincenzo Librandi, Jul 21 2015
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 23 18:16 EDT 2024. Contains 371916 sequences. (Running on oeis4.)