Sum of primes in odd positions is prime: Difference between revisions

Content deleted Content added
SqrtNegInf (talk | contribs)
m →‎{{header|Raku}}: minor tweak to satisfy task spec
SqrtNegInf (talk | contribs)
m →‎{{header|Raku}}: oops, change subscript
Line 236:
my @sums = [\+] @odd;
 
say .fmt('%5d') for grep { .[12].is-prime }, ( (1,3…*) Z @odd Z @sums );</lang>
{{out}}
<pre> 1 2 2