fn is_prime(n: @Int) -> Bool { if n <= 1 { return false; } let i: Int = 1; let limit = ceil(sqrt(n - 1)); while i < limit { i = i + 1; if n % i == 0 { return false; } } return true; } let it: Int = 0; while it < 1000 { is_prime(it); it = it + 1; }