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.
Really nice Kata. It shows that prime number are cool and give us many funny exercises. Made in C++.
I've read here that instruction was written too poorly. From my point of view it was quite nice to read. I enjoy your Katas a lot.
Nice but very easy Kata. It shouldn't be 4 Kyu in my opinion. C++
Great Kata! A Stunning example which showing that even a very fast computer is too slow to execute unefficient algorithm.
It took me quite much time today, at the begining I was happy with my O(n) complexity but it still wasn't enough, I finally noticed something and solved that as author of Kata. Goodluck to everyone!
Everything is correct now. Thx for help :)
So now, I have no idea. Look at that:
Expected: [ 216, 75318, 3844615327538216960 ] Actual: [ 216, 75318, 0 ]
Output of n_Th_ product from my compiler when overrange: (400,4) try:
1
4
56
1344
45696
1827840
74941440
3147540480
135344240640
5955146588160
267981596467200
12327153437491200
579376211562086400
-9083429992438956032
-2366211860479606784
1351768050068094976
-5720565164189679616
953291545283395584
6289513508967022592
918459484194471936
3286065987677323264
5676641121023819776
2927224205990690816
4866418054851985408
-1231003047975452672
-7550733101152862208
-2292944088552439808
4150388663773036544
7360157224611610624
-2688358706470453248
-5118745596785590272
3860904294609846272
-435230682738851840
8937604566749282304
-7114702248826896384
-4666292163909255168
-278097276990128128
4170333254945079296
-2612087783874887680
2089670227099910144
4467570830351532032
4611686018427387904
-9223372036854775808
0
0
0
0
0
0
...
0
Hi, I am solving this Kata in C++,
in random tests there is possible that product od found numbers is bigger than long type range. What can you advice me? :)