login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A071842 Number of primes == 7 mod 8 <= n. 0
0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,23

LINKS

Table of n, a(n) for n=1..105.

MATHEMATICA

Table[If[PrimeQ[n]&&Mod[n, 8]==7, 1, 0], {n, 120}]//Accumulate (* Harvey P. Dale, Feb 11 2018 *)

PROG

(PARI) for(n=1, 200, print1(sum(i=1, n, if((i*isprime(i)-7)%8, 0, 1)), ", "))

CROSSREFS

Sequence in context: A071840 A000193 A059939 * A085141 A082896 A079416

Adjacent sequences:  A071839 A071840 A071841 * A071843 A071844 A071845

KEYWORD

easy,nonn

AUTHOR

Benoit Cloitre, Jun 08 2002

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 October 23 14:45 EDT 2019. Contains 328345 sequences. (Running on oeis4.)