note that the second submission link was done on gym and therefore is not visible unless you have solved the problem
It tests the sieve on 10^7 and it runs in less than 2 seconds at least
Also would like to know whether the const mod should be swapped to a function parameter
Checklist
[x] AC on at least 1 problem
[x] Using tabs for indentation
[x] Longest line at most 63 characters (with tab length 2)
Summary
Code for Binary Expo and Sieve of Eratosthenes
Submission Link/Screenshots
https://vjudge.net/solution/54668344/2rrhUh1ih24habscIrab https://codeforces.com/gym/102953/submission/284095772
note that the second submission link was done on gym and therefore is not visible unless you have solved the problem It tests the sieve on 10^7 and it runs in less than 2 seconds at least
Also would like to know whether the const mod should be swapped to a function parameter
Checklist