Re: [go-nuts] 9 is prime if it's a hot day

136 views
Skip to first unread message

Sven Anderson

unread,
Jun 4, 2023, 7:48:52 PM6/4/23
to Bakul Shah, Alan Donovan, Kamil Ziemian, golang-nuts


Bakul Shah <ba...@iitbombay.org> schrieb am Mo. 5. Juni 2023 um 00:00:
Find the following paper and all will be revealed! May be.

"Measuring The Primadona Factor For Odd Numbers" by Y. Ronen et al.

PS: I think Rob's explanation is incorrect! 9 is shown to be not a prime possibly because it was a hot day! But given where this was published, may be Rob's explanation is indeed the right one :-)

Also apparently they are not Easter eggs but Easter rabbit holes. So, better watch out. ;-)

PPS: I could claim that I deliberately re-routed this thread to golang-dev to add additional confusion to this mysterious topic, but in reality it was a simple stupid mistake.


On Jun 4, 2023, at 11:47 AM, Alan Donovan <al...@alandonovan.net> wrote:

I can't find said article or any reference to the "hot day" phrase.
Does the deliberate mistake warrant a comment in the HTML source of
the document so that the answer is there for those who care to look?

On Sun, 4 Jun 2023 at 08:01, Sven Anderson <sv...@redhat.com> wrote:



Kamil Ziemian <kziem...@gmail.com> schrieb am Sa. 3. Juni 2023 um 21:13:

Is this example found in the "Composite literals" section of Go Spec a joke?
// list of prime numbers
primes := []int{2, 3, 5, 7, 9, 2147483647}

I checked on the internet and 2147483647 is a prime number (https://en.wikipedia.org/wiki/2,147,483,647), so this element is fine.

Best regards
Kamil


From https://golang.org/cl/101457

Rob Pike: It's a reference to a legendary article from the Journal of Irreproducible Results.

Andrew Bonvente: Is this a hazing ritual for new issue triagers? ;)

Rob Pike: Perhaps. There are details from the earliest parts of the project that are deliberately weird, as Easter eggs, if you like.

--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-dev/CAFwXxZQvPLpjRf-P9o_pzF-nvHRajT4-nfceQvgMZrghE_t6Ww%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages