Why is this code not working?
Prime visits code not working
@tanyaa.sood
hello tanya,
a)

use long long datatype becuase i*i can exceed the range of int datatype.
b)

declare ur array with size 1000001 because u are accessing index 1000 000
Why is this code not working?
@tanyaa.sood
hello tanya,
a)

use long long datatype becuase i*i can exceed the range of int datatype.
b)

declare ur array with size 1000001 because u are accessing index 1000 000