OFFSET
1,1
COMMENTS
Primes in A062675.
Subsequence of primes of A011537. - Michel Marcus, 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
EXAMPLE
For n = 2, a(2) = 17 is the second prime containing a digit of 7.
MATHEMATICA
Select[Prime[Range[150]], ! StringFreeQ[ToString[#], "7"] &]
PROG
(Magma) [p: p in PrimesUpTo(800) | 7 in Intseq(p)];
(Sage) [p for p in primes(800) if 7 in p.digits(base=10)] # Bruno Berselli, May 03 2015
(PARI) lista(nn) = forprime(p=2, nn, if(vecsearch(vecsort(digits(p)), 7), print1(p, ", "))); \\ Altug Alkan, Apr 21 2016; corrected by Michel Marcus, Oct 30 2023
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Vincenzo Librandi, May 03 2015
STATUS
approved