Unable to find the mistake in my code

Правка en1, от skpro19, 2017-11-26 10:21:12

Why am I getting WA in this code?

I am dividing 'x' by all the prime numbers. To find the prime numbers, I am using the sieve. I know, it can be done without using the sieve, but when I am using the sieve, I am getting WA. Can someone please help ?

Div 2E: Counting Arrays

My code

It would be really kind if someone could point out the bug.

Теги #number theory, combinatorics, sieve of eratosthenes

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский skpro19 2017-11-26 10:21:12 495 Initial revision (published)