Nakul and Gold Coins
Practice
2.7 (7 votes)
Algorithms
Approved
Binary search
Math
Medium
Number theory
Open
Primality test
Code Editor

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:30
5 votes
Tags:
ApprovedMathMediumNumber TheoryOpenPrimality test
Points:20
32 votes
Tags:
EasyMath BasicPrime FactorizationBasic MatheasyMathematicsOpen
Points:30
9 votes
Tags:
ApprovedMathMediumNumber TheoryOpenPrimality testPrime Factorization
Editorial

Login to unlock the editorial