Advertisement
paranid5

08.02 DZ 8

Feb 8th, 2021
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.17 KB | None | 0 0
  1. fun main() = (2461..9719).filter {
  2.     val str = it.toString()
  3.     str[0] - '0' in 3..7 && (str[1] - '0' in 2..8 || str[1] - '0' == 0)
  4. }.run { print("$size ${last()}") }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement