Advertisement
paranid5

08.02 DZ 10

Feb 8th, 2021
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.16 KB | None | 0 0
  1. fun main() = (10..1178 step 2).filter {
  2.     it % 10 != 0 && it % 10 != 2 && it % 10 != 6 && it % 10 != 8 && it % 100 != 14
  3. }.run { print("${sum()} ${first()}") }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement