Double Twin Primes: Difference between revisions
m
→{{header|Raku}}: technically these are
Thundergnat (talk | contribs) m (→{{header|Raku}}: Add a Raku example) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: technically these are) |
||
Line 14:
<br>
=={{header|Raku}}==
Cousin twin primes:
<syntaxhighlight lang="raku" line>sub dt { $^p, $p+2, $p+6, $p+8 }
.&dt.say for (^1000).grep: { all .&dt».is-prime };</syntaxhighlight>
|