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.
It's clever for sure. But usually clever != best practice.
Clever and simple, I'll make a note to remember how to use '%' to do conversions between units.
I only get parts of this. The Math.floor is used to round it that makes sense. What the heck is the seglg funcgtion doing and the for loop?
Simple, sweet solution. I like it. I'll have to remember the +=6 since numbers ending in 5 are composites. Only numbers ending in 1,3,7,9 can potentially be primes once you get into double digits.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Don't convert the string to integer. Okay I'll do some more brainstorming on this one. Parsing in one pass. I'll give it another go for an hour and see where I get.
Don't convert the string to integer. You must find something by parsing the string (in one pass, I guess).
This is a good problem as it exposes a weakness I need to address which is how to avoid making an incredibly long loop cycle while solving the problem requirements.
Can I get some suggestions on strategies I can look into on how to avoid making a loop going from 1 to n that just cause the website to just timeout because its such a massive loop?
Any assistance is appreciated.
Darn this problem makes me feel supremely ignorant lol.
I really got to learn regex better.
Nice use of RegEx. I'll need to remember that.
should start with i = 3,
Yeah good logic. Simple, I do get what other people are saying though in regards to how you can improve it though.
This comment is hidden because it contains spoiler information about the solution
Loading more items...