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!)
A185708 Characteristic function of positive numbers that are primes ending in 7. 6

%I #16 Aug 11 2019 11:47:51

%S 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,

%T 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,

%U 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

%N Characteristic function of positive numbers that are primes ending in 7.

%H Antti Karttunen, <a href="/A185708/b185708.txt">Table of n, a(n) for n = 1..65537</a>

%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>

%t Table[If[PrimeQ[n]&&Mod[n,10]==7,1,0],{n,120}] (* _Harvey P. Dale_, Aug 11 2019 *)

%o (PARI) A185708(n) = ((7==(n%10))&&isprime(n)); \\ _Antti Karttunen_, Oct 09 2018

%Y Cf. A030432 (primes of form 10n+7).

%K base,nonn

%O 1

%A _N. J. A. Sloane_, Feb 10 2011

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 July 29 22:36 EDT 2024. Contains 374734 sequences. (Running on oeis4.)