Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
22222 = 32 (2^5)
2+2+2+2+2 = 10
32%10 != 0 :- Therefore the sum of products of primes for 32 is not a factor of 32
Thanks B4B
3 and 5! ;)
Remember to make the addition of primes with the repetitions.
Check now, should be OK. Let me know if otherwise.
Let me look at it. Unfortunately, it was approved too quickly and not enough time was allowed for testing.
The first element in the result array should be the element that has 0 in the same position in the sortingArray and so on. You are not far
Try throwing something other than a string, I hope the link above will help.
https://stackoverflow.com/questions/11502052/throwing-strings-instead-of-errors