madhavamathcompetition.com

Number theory basics, programming and RMO training — problem set 2

1. Write a program in C, or C++, or MATLAB or Scilab or Mathematica/Maple (a) to generate all Mersenne primes up to $latex 2^{525}-1$ (b) to determine the smallest prime number larger than $latex 1…