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
FORMULA
a(n) ~ n log n. - Charles R Greathouse IV, Nov 01 2022
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, 1600, if(vecsearch(vecsort(digits(p)), 5), print1(p, ", "))) \\ Derek Orr, May 05 2015; corrected by Michel Marcus, Oct 30 2023
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).
KEYWORD
nonn,base,easy
AUTHOR
Vincenzo Librandi, May 03 2015
STATUS
approved