Question DSA-MATH-0072
HardWhy is 10⁹ + 7 popular as a modulus in programming problems?
- A.
It makes answers smaller than 100
- B.
It is even
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Math and Number Theory question
Why is 10⁹ + 7 popular as a modulus in programming problems?
It makes answers smaller than 100
It is even
Sign up free to see the answer and a step-by-step explanation.
It is a large prime that fits in 32 bits, and products of two residues fit in 64 bits
It is a power of 10