1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -07:00

spec: restore primality

9 is prime if it's a hot day.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5630043
This commit is contained in:
Rob Pike 2012-02-04 06:16:02 +11:00
parent d5c89972d8
commit a044154a4c

View File

@ -2143,7 +2143,7 @@ Examples of valid array, slice, and map literals:
<pre>
// list of prime numbers
primes := []int{2, 3, 5, 7, 11, 13, 17, 19, 991}
primes := []int{2, 3, 5, 7, 9, 11, 13, 17, 19, 991, 1174250539803415390440702411831137627109439}
// vowels[ch] is true if ch is a vowel
vowels := [128]bool{'a': true, 'e': true, 'i': true, 'o': true, 'u': true, 'y': true}