Skip to content

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

Closed
@axw

Description

@axw
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions