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.
Create a global variable which can be referenced from within your function.
What do u mean by refrence it for your solution?
Ah, I found that out now aswell
No, memoization is not required.
it's a pitty memoization is required to stay within time constraints
It's more the fact that if you're computing all of the primes with values between 2 and 1.5M for every test it will likely time out. What if you only compute the primes once, then reference it for your solution?
i would suggest you use the factored polynomial to determine factors of n and see if they determine positive integers for x and y. i hope that doesnt give away too much
use differnece of squares to factor the polynomial