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.
This comment is hidden because it contains spoiler information about the solution
Yeah, first you recognize the pattern, then you figure out how to code it. No problem.
This is a pattern recognition problem, not a coding problem.
It says odd numbers, not prime numbers, there is nothing to rectify.
Test Included Number 9, which is not a Prime Number. Question was good, If possible rectify the Tests. Thanks!
This really felt like a Math problem. 90% of the thinking was spent on coming up with the correct formula instead of programming techniques.
In C, upper range of random tests is chosen to not overflow correct solutions.
If your solution overflows, it's most probably because it's buggy.
Can confirm
It's a 7kyu kata, and users can use array methods to solve it.
Are numbers with 3 different sums (e.g. 87539319 = 167³ + 436³ = 228³ + 423³ = 255³ + 414³) considered as a case where you should return
true
?Don't forget the spoiler flag for those who haven't solved this kata :)
This comment is hidden because it contains spoiler information about the solution
How is this an array kata?
*Astronaut meme* Always has been.
This comment is hidden because it contains spoiler information about the solution
Loading more items...