Ctrl+P again to print, arrows/tab to navigate results, enter to confirm

    Please in order to save solutions and appear on the leaderboards. New here? Check out the Tutorial hole.

    Details

    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, but 131 is not.

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

    External links: OEIS A006567, Rosetta Code, Wikipedia

    Copied
    0 bytes, 0 chars
    Restore solution
    Compiled from AT&T syntax to x86-64 Linux. Use syscalls to write output.
    ctrl + enter or

    Delete Solution

    Are you sure you want to delete your solution(s) for Emirp Numbers?

    If you have separate bytes and chars solutions then both will be deleted.

    This is irreversible, please backup any code you care about.

    Type I understand and press confirm to continue.