[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A331876 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

newer changes | Showing entries 11-16
Number of primes of the form P(k) = k^2 + k + 41 for k <= 10^n, where P(k) is Euler's prime-generating polynomial A202018.
(history; published version)
#6 by Hugo Pfoertner at Thu Jan 30 06:23:44 EST 2020
PROG

(PARI) n=0; m=1; for(k=0, 10^8, my(j=k^2+k+41); if(isprime(j), n++); if(k>==m, m=m*10; print1(n, ", ")))

#5 by Hugo Pfoertner at Thu Jan 30 06:20:43 EST 2020
NAME

Number of primes of the form P(k) = k^2 + k + 41 for k <= 10^n, where P(k) is Euler's prime-generating polynomial A202018.

EXAMPLE

a(0) = 2 because 41 and 43 are the 2 primes generated for k <= 1 = 10^0.

a(1) = 11 because 41, 43, 47, 53, 61, 71, 83, 97, 113, 131, 151 are the 11 primes generated for k <= 10^1. , (A202018(10) = 151).

a(3) = 87 because 87 terms of A202018(0..100) are prime. The 14 composites occur for k = A007634(1..14): 40, 41, 44, 49, 56, ...

#4 by Hugo Pfoertner at Thu Jan 30 06:16:01 EST 2020
EXAMPLE

a(3) = 87 because 87 terms of A202018(0..100) are prime. The 14 composites occur for A007634(1..14): 40, 41, 44, 49, 56, ...

CROSSREFS
#3 by Hugo Pfoertner at Thu Jan 30 06:05:01 EST 2020
NAME

allocated Number of primes of the form P(k)=k^2 + k + 41 for Hugo Pfoertnerk <= 10^n, where P(k) is Euler's prime-generating polynomial A202018.

DATA

2, 11, 87, 582, 4149, 31985, 261081, 2208197, 19132653

OFFSET

0,1

EXAMPLE

a(0) = 2 because 41 and 43 are 2 primes generated for k <= 1 = 10^0.

a(1) = 11 because 41, 43, 47, 53, 61, 71, 83, 97, 113, 131, 151 are the 11 primes generated for k <= 10^1. (A202018(10)=151).

a(3) = 87 because 87 terms of A202018(0..100) are prime.

PROG

(PARI) n=0; m=1; for(k=0, 10^8, my(j=k^2+k+41); if(isprime(j), n++); if(k>=m, m=m*10; print1(n, ", ")))

CROSSREFS
KEYWORD

allocated

nonn,more

AUTHOR

Hugo Pfoertner, Jan 30 2020

STATUS

approved

editing

#2 by Hugo Pfoertner at Thu Jan 30 04:55:44 EST 2020
KEYWORD

allocating

allocated

#1 by Hugo Pfoertner at Thu Jan 30 04:55:44 EST 2020
NAME

allocated for Hugo Pfoertner

KEYWORD

allocating

STATUS

approved