Coding challenge

An "emirp" ("prime" spelled backward), is a prime number, that is also prime when you reverse its digits, like 13, and 17. Write some code to count how many emirps exists under 1,000. (Ans: 13).

Type your code here:


Lua reference

See your results here: