Error in code,test case not passing

ques:-https://hack.codingblocks.com/app/practice/5/1264/problem
ans:-https://ide.codingblocks.com/s/406958

Hey @prashantgupta9876
Re read the question and constraints as well
1)You have to find the numbers which are divisible by prime <20 i.e [2,3,5,7,11,13,17,19]
2)N can be as large as 10^18 so u can’t use that big sieve

only change

vector primelist{2,3,5,7,11,13,17,19};

oh sorry i missed that 20 , i got my answer

1 Like