= System.currentTimeMillis() val result = primeNumberSequence.take(n).last() val timeToRun = System.currentTimeMillis() - startTime println("<- prime [ran in $timeToRun ms]") return result }
= System.currentTimeMillis() val result = primeNumberSequence.take(n).last() val timeToRun = System.currentTimeMillis() - startTime println("<- prime [ran in $timeToRun ms]") return result }
= System.currentTimeMillis() val result = primeNumberSequence.take(n).last() val timeToRun = System.currentTimeMillis() - startTime println("<- prime [ran in $timeToRun ms]") return result } @DebugLog fun prime(n: Int): Long { return primeNumberSequence.take(n).last() }