login
A185708
Characteristic function of positive numbers that are primes ending in 7.
6
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
OFFSET
1
MATHEMATICA
Table[If[PrimeQ[n]&&Mod[n, 10]==7, 1, 0], {n, 120}] (* Harvey P. Dale, Aug 11 2019 *)
PROG
(PARI) A185708(n) = ((7==(n%10))&&isprime(n)); \\ Antti Karttunen, Oct 09 2018
CROSSREFS
Cf. A030432 (primes of form 10n+7).
Sequence in context: A103674 A358842 A358758 * A373256 A286996 A044937
KEYWORD
base,nonn
AUTHOR
N. J. A. Sloane, Feb 10 2011
STATUS
approved