paranid5

08.02 DZ 5

Feb 8th, 2021
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.19 KB | None | 0 0
  1. fun main() = (3232..8299).filter {
  2.     (it % 2 == 0 || it % 7 == 0) &&
  3.             it % 15 != 0 &&
  4.             it % 28 != 0 &&
  5.             it % 41 != 0
  6. }.run { print("${first()} ${last()}") }
Advertisement
Add Comment
Please, Sign In to add comment