My take:

  (((0=60|])*.0~:24|])#])1+i.1000
60 180 300 420 540 660 780 900

/Erling

Den 2017-12-19 kl. 19:52, skrev 'Skip Cave' via Programming:
How many numbers from 1 to 1000 are divisible by 60 but not by 24?

Here's my somewhat inelegant explicit solution:

     #e=.c#~d=.-.0=24|/c=.a#~b=.0=60|/a=.1+i.1000

8


NB. What are the numbers?

     e

60 180 300 420 540 660 780 900


How would I construct  a more compact tacit solution?


Skip

Skip Cave
Cave Consulting LLC
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to