Guest User

Untitled

a guest
Apr 26th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. +/~.(3*i.>.1000%3),5*i.>.1000%5
  2.  
  3. [:+/@~.@,3 5([*i.@>.@%~)]
  4.  
  5. f =: [:+/@~.@,3 5([*i.@>.@%~)]
  6. f 1000
  7.  
  8. +/~.,3 5([*i.@>.@%~)1000
  9.  
  10. %~ = 4 : 'y % x'
  11. i.@>.@%~ = 4 : 'i. >. y % x'
  12. [*i.@>.@%~ = 4 : 'x * i. >. y % x'
  13. 3 5([*i.@>.@%~)] = 3 : '3 5 * i. >. y % 3 5'
  14. [:+/@~.@,3 5([*i.@>.@%~)] = 3 : '+/ ~. , 3 5 * i. >. y % 3 5'
  15.  
  16. multiplesbelow =: 4 : 'I. 0 = x | i.y'
  17. +/ ~. ,3 5 multiplesbelow"0 [ 1000
Add Comment
Please, Sign In to add comment