Advertisement
paranid5

08.02 DZ 7

Feb 8th, 2021
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.20 KB | None | 0 0
  1. fun main() = (3712..8432).filter {
  2.     it.toString(radix = 2).last() == it.toString(radix = 4).last() &&
  3.             (it % 13 == 0 || it % 14 == 0 || it % 15 == 0)
  4. }.run { print("$size ${first()}") }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement