The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A319228 Number of primes of the form b^2 + b + 1 for b <= 10^n. 1

%I #26 Sep 18 2018 12:14:52

%S 6,32,189,1410,10751,88118,745582,6456835,56988601,510007598,

%T 4615215645

%N Number of primes of the form b^2 + b + 1 for b <= 10^n.

%e a(1) = 6 because there are 6 primes of the form b^2 + b + 1 for b <= 10: 3, 7, 13, 31, 43 and 73.

%o (PARI) {a(n) = sum(k=0, 10^n, isprime(k^2+k+1))}

%o (Python)

%o from sympy import isprime

%o def A319228(n):

%o c, b, b2, n10 = 0, 1, 3, 10**n

%o while b <= n10:

%o if isprime(b2):

%o c += 1

%o b += 1

%o b2 += 2*b

%o return c # _Chai Wah Wu_, Sep 17 2018

%Y Cf. A002383, A002384, A206709.

%K nonn,more

%O 1,1

%A _Seiichi Manyama_, Sep 14 2018

%E a(10) from _Chai Wah Wu_, Sep 17 2018

%E a(11) from _Chai Wah Wu_, Sep 18 2018

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 May 14 00:47 EDT 2024. Contains 372528 sequences. (Running on oeis4.)