Anti-primes: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 964:
 
==={{header|Yabasic}}===
{{Output?|Yabasic}}
{{trans|AWK}}
<syntaxhighlight lang="yabasic">print "The first 20 anti-primes are:"
Line 990 ⟶ 989:
return count
end sub</syntaxhighlight>
{{out}}
<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>
 
{{trans|Lua}}
Line 1,023 ⟶ 1,025:
print mid$(antiprimes$(20), 3)
print "Done."</syntaxhighlight>
{{out}}
<pre>The first 20 antiprimes:
1, 2, 4, 6, 12, 24, 36, 48, 60, 120, 180, 240, 360, 720, 840, 1260, 1680, 2520, 5040, 7560
Done.</pre>
 
 
=={{header|BCPL}}==
2,131

edits