Блог пользователя nemesis

Автор nemesis, история, 9 лет назад, По-английски

Hi everybody,

I need help.I've been looking the problem for hours.But i cant find my mistake.This is my awful solution.16437994.Could anyone explain what is my mistake and what should i do? Thanks...

  • Проголосовать: нравится
  • -14
  • Проголосовать: не нравится

»
9 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by nemesis (previous revision, new revision, compare).

»
9 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Variable divisorsCount is the number of divisors mod (MODULE — 1). By divisiorCount /= 2; you are trying to get half of number of divisors mod (MODULE — 1), which doesn't work. (MODULE — 1) is even, so remainder of 2x mod (MODULE — 1) is not enough to tell remainder of x mod (MODULE — 1). You can for example count divisorsCount mod 2 * (MODULE — 1), then the divisorCount /= 2; would work.