This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A080378 #19 Jul 07 2022 16:19:42 %S A080378 1,2,2,0,2,0,2,0,2,2,2,0,2,0,2,2,2,2,0,2,2,0,2,0,0,2,0,2,0,2,0,2,2,2, %T A080378 2,2,2,0,2,2,2,2,2,0,2,0,0,0,2,0,2,2,2,2,2,2,2,2,0,2,2,2,0,2,0,2,2,2, %U A080378 2,0,2,0,2,2,0,2,0,0,0,2,2,2,2,2,0,2,0,0,2,0,0,0,0,0,0,2,0,2,2,2,2,2,2,2,2 %N A080378 Residues mod 4 of the n-th difference between consecutive primes. %H A080378 Michael De Vlieger, <a href="/A080378/b080378.txt">Table of n, a(n) for n = 1..10000</a> %F A080378 a(n) = A001223(n) mod 4. %t A080378 Table[Mod[Prime[w+1]-Prime[w], 4], {w, 1, 256}] %t A080378 Mod[Differences[Prime[Range[200]]], 4] (* _Zak Seidov_, Jun 26 2015 *) %o A080378 (Python) %o A080378 from sympy import prime %o A080378 def A080378(n): return (prime(n+1)-prime(n))&3 # _Chai Wah Wu_, Jul 07 2022 %Y A080378 Sequences related to the differences between successive primes: A001223 (Delta(p)), A028334, A080378, A104120, A330556-A330561. %K A080378 nonn %O A080378 1,2 %A A080378 _Labos Elemer_, Mar 04 2003