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

Details

A leyland number is of the form xy + yx where 1 < y ≤ x.

For example, 8 is a leyland number because 22 + 22 = 8.

Print all the leyland numbers from 1 to 100,000,000,000 inclusive, each on their own line.

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