Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: list of primes contains a non-prime #2870

Closed
axw opened this issue Feb 3, 2012 · 4 comments
Closed

doc: list of primes contains a non-prime #2870

axw opened this issue Feb 3, 2012 · 4 comments

Comments

@axw
Copy link
Contributor

axw commented Feb 3, 2012

The language specification has a code example which says 9 is prime:

    // list of prime numbers
    primes := []int{2, 3, 5, 7, 9, 11, 13, 17, 19, 991}

I'd just fix it, but I have to request approval from work first.
@rsc
Copy link
Contributor

rsc commented Feb 3, 2012

Comment 1:

ha ha

Status changed to Started.

@rsc
Copy link
Contributor

rsc commented Feb 3, 2012

Comment 2:

This issue was closed by revision c739dd2.

Status changed to Fixed.

@ianlancetaylor
Copy link
Contributor

Comment 3:

Issue #8830 has been merged into this issue.

@minux
Copy link
Member

minux commented Sep 29, 2014

Comment 4:

note: 9 is still in the list, and it seems to be intended.
ref https://golang.org/cl/5634046/ and https://golang.org/cl/5630043

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants