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.
☂️☔🌂
Just a regular JS :)
Thank you! :) it looks super cool :D
It's Code golf, and all the variable names are unicode characters.
what is that? :) havent seen something like that ever :D how it is even working?
This comment is hidden because it contains spoiler information about the solution
I thought this kata is impossible to solve in JavaScript due to performance limitations.
I spent three days trying different approaches, using some tricky optimization approaches...
...just to find out that this kata is way easier than I thought, and it even leaves some reserve in running time.
So it it is even possible to get rid of some optimizations (like bit shift for multiplication) and still generate even more than 25e6 primes.
So I managed to golf it down to 136 characters.
In the end, that was a lot of fun, I played with different performance tricks (most of them turned to be insignificant though).
when doing the atempt, numbers are having different lentgh in the one pair
wrong description
This comment is hidden because it contains spoiler information about the solution
Statement says:
Though in random tests this rule is not followed: shorter numbers are not zero-padded.