0

Wrong Answer on Prime Integer Generator

The problem is to get an output of prime numbers from 2 to n with n is an user input. The constraint is 2 <= n <= 1000001. When i wrote the program and run it, it gave me right output. But when submitting it to an online judge, it gave me WA (Wrong Answer). What did i do wrong? The program is as follows in C https://code.sololearn.com/c52DWdEN32uy/?ref=app

27th Sep 2019, 1:09 PM
Daanii Kusnanta
Daanii Kusnanta - avatar
0 Resposta