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


An emirp (prime spelled backwards) is a prime number that results in a different prime when its decimal digits are reversed. For example both 13 and 31 are emirps.

Print all the emirp numbers from 1 to 1000 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.
ctrl + enter or Run