Jump to content

Anti-primes: Difference between revisions

m
→‎{{header|AWK}}: Added translated from, blank lines removed
m (→‎{{header|AWK}}: Added translated from, blank lines removed)
Line 79:
 
=={{header|AWK}}==
{{trans|Go}}<lang AWK># syntax: GAWK -f ANTI-PRIMES.AWK
<lang AWK>
# syntax: GAWK -f ANTI-PRIMES.AWK
# converted from Go
BEGIN {
print("The first 20 anti-primes are:")
Line 106 ⟶ 104:
}
return(count)
}</lang AWK>
}
</lang>
{{out}}
<pre>The first 20 anti-primes are:
<pre>
1 2 4 6 12 24 36 48 60 120 180 240 360 720 840 1260 1680 2520 5040 7560</pre>
The first 20 anti-primes are:
1 2 4 6 12 24 36 48 60 120 180 240 360 720 840 1260 1680 2520 5040 7560
</pre>
 
=={{header|BASIC256}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.