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.
the basic approach i can think of is to iterate over that given range (a, b) and check if two first numbers are primes and evaluate the other conditions but using a for loop just cause
'execution time out'
it should be a way to reduce this but i think is related to some numerical theory termsThis means you need a better algorithm, yours is too slow. (Or you have an infinite loop somewhere)