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!)
A272356 (Sum_{i=1..n} prime(i)) mod 4. 1
0, 2, 1, 2, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 0, 3, 0, 3, 2, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 3, 0, 3, 0, 3, 2, 3, 2, 3, 2, 3, 0, 3, 2, 1, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 3, 2, 3, 2, 3, 0, 3, 2, 3, 2, 1, 2, 3, 0, 1, 0, 1, 0, 1, 0, 3, 0, 1, 2, 1, 0, 3, 2, 1, 0, 3, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 3, 0, 3, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Inspired by A103271, prime(n)+prime(n+1) mod 4.
LINKS
FORMULA
a(n) = A007504(n) mod 4.
PROG
(PARI) A272356(n, print_all=1, a=Mod(0, 4))={n&&forprime(p=2, , a+=p; print_all&&print1(lift(a)", "); n--||break); lift(a)}
CROSSREFS
Sequence in context: A286134 A336922 A276469 * A102565 A076826 A137178
KEYWORD
nonn
AUTHOR
M. F. Hasler, Apr 26 2016
STATUS
approved

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 April 23 08:19 EDT 2024. Contains 371905 sequences. (Running on oeis4.)