Please log in with GitHub in order to save solutions and appear on the leaderboards.

Details

An evil number is a non-negative number that has an even number of 1s in its binary expansion.

Print all the evil numbers from 0 to 50 inclusive, each on their own line.

Numbers that are not evil are called odious numbers.

0 characters
 
 
 
 
 
 
 
 
arguments holds ARGV, print() to output with a newline, write() to output without a newline.
say() is available without any import.
Implicit output is disabled for this hole. Use Out-Host or Write-Host for output.
ctrl + enter or  Run