login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257667 Primes containing a digit 5. 6
5, 53, 59, 151, 157, 251, 257, 353, 359, 457, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 653, 659, 751, 757, 853, 857, 859, 953, 1051, 1151, 1153, 1259, 1451, 1453, 1459, 1511, 1523, 1531, 1543, 1549, 1553, 1559, 1567, 1571, 1579 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Subsequence of primes of A011535. - Michel Marcus, May 03 2015

Primes in A062671. - Bruno Berselli, May 03 2015

LINKS

Shujing Lyu, Table of n, a(n) for n = 1..100000

MATHEMATICA

Select[Prime[Range[250]], ! StringFreeQ[ToString[#], "5"] &]

PROG

(MAGMA) [p: p in PrimesUpTo(1600) | 5 in Intseq(p)];

(Sage) [p for p in primes(1600) if 5 in p.digits(base=10)] # Bruno Berselli, May 03 2015

(PARI) forprime(p=1, 10^3, if(vecsearch(digits(p), 5), print1(p, ", "))) \\ Derek Orr, May 05 2015

CROSSREFS

Cf. prime numbers containing the string k: A208270 (k=1), A208272 (k=2), A212525 (k=3), this sequence (k=5), A257668 (k=7), A166571 (k=10), A166572 (k=11), A243529 (k=12), A166573 (k=13), A243530 (k=14), A243531 (k=15), A243532 (k=16), A166579 (k=17), A243527 (k=111), A166580 (k=222), A166581 (k=333), A166582 (k=444).

Cf. A011535, A062671, A243531 (subsequence).

Sequence in context: A107803 A255579 A088712 * A045711 A090153 A188339

Adjacent sequences:  A257664 A257665 A257666 * A257668 A257669 A257670

KEYWORD

nonn,base,easy

AUTHOR

Vincenzo Librandi, May 03 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 30 07:49 EDT 2021. Contains 346348 sequences. (Running on oeis4.)