Brilliant numbers: Difference between revisions
Content added Content deleted
(FreeBASIC) |
|||
Line 1,980: | Line 1,980: | ||
.zipWithIndex |
.zipWithIndex |
||
.dropWhile((b, _i) => b < limit) |
.dropWhile((b, _i) => b < limit) |
||
.head |
|||
val duration = System.currentTimeMillis - start |
val duration = System.currentTimeMillis - start |
||
println(f"first >= $limit%7d is $bril%7d at position ${index+1}%5d [time(ms) $duration%2d]") |
println(f"first >= $limit%7d is $bril%7d at position ${index+1}%5d [time(ms) $duration%2d]") |