While learning about functional programming the simple sieve example was brought up in Haskell. I wanted to try a Kotlin implementation using sequences. Are there any other quick wins without modifying the structure too much? import kotlin.coroutines.experimental.buildSequence import kotlin.system.measureTimeMillis fun sieve(isPrime: Int, ints: Sequence<Int>): Boolean = with(ints.first()){ return when { isPrime < 2 -> falseRead more