Question DSA-MATH-0014
MediumWhy do programming problems often ask for answers 'modulo 10⁹ + 7'?
- A.
It is the fastest number to divide by
- B.
It makes answers smaller to print
- 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 do programming problems often ask for answers 'modulo 10⁹ + 7'?
It is the fastest number to divide by
It makes answers smaller to print
Sign up free to see the answer and a step-by-step explanation.
It is a large prime that keeps numbers within 64-bit range and allows modular inverses
It is required by every language