Perfect numbers: Difference between revisions

No edit summary
(→‎{{header|Go}}: incorrect)
Line 307:
# [ 6, 28, 496, 8128 ]</lang>
=={{header|Go}}==
{{incorrect|Go|This program apparently pre-loads known perfect numbers into an array and checks to see if the input matches one of them. The spirit of this exercise is to compute whether or not the given integer is perfect.}
<lang go>func isPerfect(n int64) bool {
for _, p := range []int64{6, 28, 496, 8128, 33550336,
Anonymous user