0 } yield(head) for (i in sieve(tail)) yield(i) } val primes = sieve(generateSequence(2) { it + 1 }) fun isPrime(n: Int) ...
確定! 回上一頁