How many slices of the list used in this problem multiply to get a prime less than or equal to 31?
This problem is inspired by Agnishom Chattopadhyay who was inspired by Christopher Boo , who in turn was inspired by the Malaysia Computing Olympiad 2014.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Solution very similar to solution on clever cat, this time replacing sum with prod to get product. Counting occurrences and returning. Read comments on clever cat for clarification.