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.
666
This comment is hidden because it contains spoiler information about the solution
666
GREAT!
This comment is hidden because it contains spoiler information about the solution
The idea is that no number from the interval (n/2, n) will ever be a divisor of n.
hi, can you please explain to me why i <= n/2; i somehow get that this is faster than going through every i until it reaches n. but i still don't grasp the idea.
WOW
This is insane!!!
This is why knowing math is helpful for computer science facepalm
It took me 30 minutes and ~ 40 lines of code, and now i see this)
Programming is a pure pleasure
WTF? Are you God in MAth + programming skill
It is a Congruence formula! That's all.
Are you God himself, who descended on earth just to flex his programming skills?
Please write a book, i want to know how you think.
I can't even believe how some people can come up with a solution like this. Damn!! Good job though!
Loading more items...