Help me, getting RTE

Revision en1, by hossainzarif, 2020-04-23 09:45:14

https://vjudge.net/problem/LightOJ-1289
This problem states to find lcm from 1 to n. I firstly did sieve from 1 to 100000000. Then, calculated the multiple results of all prime powers which does not exceed x (2 <= x <= 100000000). And then processed the query.
https://ideone.com/1zDXDc
I tried out every possible cases I found and don't see any RTE in my compiler. Even for this case in the Ideone.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English hossainzarif 2020-04-23 09:45:14 432 Initial revision (published)