A040103 Duplicate of A045323.
2, 3, 7, 11, 17, 19, 23, 31, 41, 43, 47, 59, 67, 71, 73, 79, 83, 89, 97, 103, 107, 113, 127
Offset: 0
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.
a007521 n = a007521_list !! (n-1) a007521_list = filter ((== 1). a010051) a004770_list -- Reinhard Zumkeller, Aug 17 2012
[p: p in PrimesUpTo(2000) | p mod 8 eq 5]; // Vincenzo Librandi, Jun 26 2014
Select[8Range[0, 160] + 5, PrimeQ] (* Harvey P. Dale, Apr 22 2011 *)
list(lim)=select(n->n%8==5,primes(primepi(lim))) \\ Charles R Greathouse IV, Jul 25 2011
from sympy import isprime print(list(filter(isprime, range(5, 1214, 8)))) # Michael S. Branicky, May 13 2021
a004776 n = a004776_list !! (n-1) a004776_list = filter ((/= 5) . (`mod` 8)) [0..] -- Reinhard Zumkeller, Aug 17 2012
[n : n in [0..100] | n mod 8 in [0, 1, 2, 3, 4, 6, 7]]; // Wesley Ivan Hurt, Jul 22 2016
A004776:=n->8*floor(n/7)+[0, 1, 2, 3, 4, 6, 7][(n mod 7)+1]: seq(A004776(n), n=0..100); # Wesley Ivan Hurt, Jul 22 2016
DeleteCases[Range[0,80],?(Mod[#,8]==5&)] (* _Harvey P. Dale, Apr 28 2014 *)
is(n)=n%8!=5 \\ Charles R Greathouse IV, Mar 07 2013
A004776(n)=n+(n-6)\7 \\ M. F. Hasler, Nov 02 2013
def A004776(n): return n-1+(n+1)//7 # Chai Wah Wu, Feb 24 2025
Table[Numerator[Sum[1/k^n,{k,1,n-1}]],{n,2,15}]
Comments