Deepak and prime 2


my code

its running perfectly on ideone whereas it giving the below error.

runguard: warning: timelimit exceeded (wall time): aborting command
runguard: warning: command terminated with signal 15

the error can be removed using ll instead of int
but ur answer is still wrong
refer to this code

@chhavibansal can u explain why it is wrong as it is perfect by logic.

bro i do not have access to the question link
i have made updated to the code its working fine now for small inputs u`ll have to confirm if it passes all the test cases
u have a lot of minor error prime sieve code
also added comments to other places

@chhavibansal okk thanks

1 Like