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
14 votes
Tags:
C++Primality TestsMathNumber Theory
Points:20
2 votes
Tags:
Easy
Points:30
5 votes
Tags:
ApprovedMathMediumOpen
Editorial

Login to unlock the editorial