Advertisement
paranid5

08.02 DZ 4

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