Iccanobif primes: Difference between revisions
Content deleted Content added
Added Lua |
m →{{header|Lua}}: Avoid redefining "next" |
||
Line 715: | Line 715: | ||
local curr = 1 |
local curr = 1 |
||
while pCount < 10 do |
while pCount < 10 do |
||
local |
local nextF = prev + curr |
||
prev = curr |
prev = curr |
||
curr = |
curr = nextF |
||
local rev = reverseDigits( curr ) |
local rev = reverseDigits( curr ) |
||
if isPrime( rev ) then |
if isPrime( rev ) then |