Advertisement
paranid5

08.02 DZ 3

Feb 8th, 2021 (edited)
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.18 KB | None | 0 0
  1. fun main() = (3542..15876).filter {
  2.     (it % 2 == 0 || it % 9 == 0) &&
  3.     it % 11 != 0 &&
  4.     it % 13 != 0 &&
  5.     it % 17 != 0 &&
  6.     it % 23 != 0
  7. }.run { print("$size ${last()}") }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement