Ad
  • Default User Avatar

    but in this case you shouldn't ask whether it's divisible by 4,8,9 because of negative answers for 2 and 3. therefore, the sequence reduces to 2,3,5,7

    UPD: ah, nevermind. I didn't notice the process is non-interactive