Or, just count by 4s and 2s:
{ my $x; say for map { $x += $_ } 1,(4,2)x($LIM/6) }1 5 7 11 13 17 19 . .
(At least 15x faster than your Grandma's best nested loop, too.)
In reply to Re: Inverted logic
by rjt
in thread Inverted logic
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |