Hello, I’ve been giving this a shot for about an hour so far and can’t seem to make the time limit, I’ve trimmed down my algorithm quite a bit since I started, I think the main problem in my solution is that it will recalculate primes that are in the range of m - n simply to re-output them. I think my algorithm may be a lost cause at this point, but here it is:
(P.S. how the heck do I fix whitespace in this forum)
code at bpaste
https://bpaste.net/show/fdb35d621073