# Pastebin 0Dsdrdek Error in ./test.cr:21: instantiating 'is_prime(Int32)' if num % i == 0 && is_prime(i) ^~~~~~~~ in ./test.cr:8: undefined method 'sqrt' for Float64 (2..Math.sqrt(x).sqrt.ceil + 1).each do |i| ^~~~ ================================================================================ Float64 trace: macro macro_38000416 (in /opt/crystal/src/math/math.cr:11):274 def sqrt(value) ^~~~ macro macro_38000416 (in /opt/crystal/src/math/math.cr:11):275 sqrt(value.to_f) ^~~~ macro macro_38000416 (in /opt/crystal/src/math/math.cr:11):270 def sqrt(value : Float64) ^~~~