Attractive numbers: Difference between revisions

Content added Content deleted
m (Automated syntax highlighting fixup (second round - minor fixes))
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 4,080: Line 4,080:
102 105 106 108 110 111 112 114 115 116 117 118 119 120</pre>
102 105 106 108 110 111 112 114 115 116 117 118 119 120</pre>


=={{header|Vlang}}==
=={{header|V (Vlang)}}==
{{trans|Go}}
{{trans|Go}}
<syntaxhighlight lang="vlang">fn is_prime(n int) bool {
<syntaxhighlight lang="v (vlang)">fn is_prime(n int) bool {
if n < 2 {
if n < 2 {
return false
return false