Half joke half serious generating function for the primes A000040

27 views
Skip to first unread message

N A

unread,
Jan 9, 2026, 10:28:14 PM (11 days ago) Jan 9
to SeqFan
I've recently found a video online about a prime generator called Willans' formula. I've posted a picture from Wolfram MathWorld of it below.

Capture.PNG

My question is, seeing that OEIS is meant to serve as a reference for formal mathematics research, would it be inappropriate to add to A000040 the formal power series generating function:
G(x) = Sum_{n>=1} [ 1 + Sum_{m=1..2^n} floor( ( n / Sum_{j=1..m} floor(cos^2(π((j−1)!+1)/j)) )^(1/n) ) ] x^n

I ask because this looks rather messy.

Thank you,
Nour Abouyoussef

Sean A. Irvine

unread,
Jan 9, 2026, 10:40:00 PM (11 days ago) Jan 9
to seq...@googlegroups.com
No. The primes are a "core" sequence so we want to be very selective about which information we include.

Sean.


--
You received this message because you are subscribed to the Google Groups "SeqFan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seqfan+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/cb93d19c-efc2-4971-89ea-c566ed637c1en%40googlegroups.com.

Fred Lunnon

unread,
Jan 9, 2026, 11:07:29 PM (11 days ago) Jan 9
to seq...@googlegroups.com
  I think Sean meant "Yes" (it would be inappropriate)!    WFL 

_

N A

unread,
Jan 9, 2026, 11:40:34 PM (11 days ago) Jan 9
to SeqFan
Good to know and ask, thank you both!
Nour Abouyoussef

M F Hasler

unread,
Jan 11, 2026, 9:48:56 AM (9 days ago) Jan 11
to seq...@googlegroups.com
The reference / LINK
C. P. Willans, On formulae for the nth prime, Math. Gazette 48 (1964), 413-415.
is already in A000040.
Since the original publisher doesn't give the PDF to anyone, I propose to add the stor.org/stable/3611701 link.

-Maximilian


--
Reply all
Reply to author
Forward
0 new messages