Rhezo and Prime Problems
Practice
3.7 (703 votes)
Approved
Data structures
Dynamic programming
Easy
Number theory
Ready
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:20
66 votes
Tags:
AlgorithmsApprovedDynamic ProgrammingEasyOpen
Points:20
65 votes
Tags:
Ad-HocAlgorithmsApprovedEasyOpen
Points:20
25 votes
Tags:
AlgorithmsDynamic ProgrammingEasy
Editorial

Login to unlock the editorial