Perfect numbers: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 4,226: Line 4,226:




=={{header|Vlang}}==
=={{header|V (Vlang)}}==
{{trans|go}}
{{trans|go}}
<syntaxhighlight lang="vlang">fn compute_perfect(n i64) bool {
<syntaxhighlight lang="v (vlang)">fn compute_perfect(n i64) bool {
mut sum := i64(0)
mut sum := i64(0)
for i := i64(1); i < n; i++ {
for i := i64(1); i < n; i++ {