function is_prime(n) for x = 2, math.sqrt(n) do if (n % x) == 0 then return false end end return trueendtotal = 0for x = 101, 200 do if is_prime(x) then total = total + 1 print(x) endendprint('Total ' .. total .. ' primes')