Skip to main content
DevEval
Library
Practice
Problems
Number Theory
Topic
Number Theory problems
24 problems: 8 Easy, 8 Medium, 8 Hard.
Easy (8)
Ugly Number
Perfect Number
Self Dividing Numbers
Sum of Multiples
GCD of Array
Prime Set Bits in Range
Greatest Common Divisor
Least Common Multiple
Medium (8)
Count Primes
Mirror Reflection
Bulb Switcher
Number of Pairs of Interchangeable Rectangles
Smallest Prime Factor Sieve
Modular Exponentiation
Modular Inverse (Prime)
Extended GCD
Hard (8)
Sum of Euler Totient
Count Coprime Pairs
Miller-Rabin Primality Check
Largest Prime Factor
Euler Totient of n
Fast-Doubling Fibonacci Modulo
Chinese Remainder Theorem
Triangle Interior Lattice Points
Other topics
Array
414
Math
223
String
204
Dynamic Programming
142
Hash Table
125
SQL
116
Tree
93
Matrix
83
Sorting
83
Simulation
66
Greedy
65
Binary Search
61
Machine Learning
59
Two Pointers
57
Stack
50
Graph
49
Data Engineering
48
Bit Manipulation
47
Heap
47
Sliding Window
44
Prefix Sum
42
Aggregation
38
Design
37
Backtracking
32
Linked List
32
Breadth-First Search
30
Depth-First Search
27
Combinatorics
25
Statistics
25
Binary Search Tree
23
Intervals
23
Joins
18
Divide and Conquer
17
Union Find
17
Geometry
16
Recursion
16
Backend Systems
12
String Matching
12
Data Integrity
11
Shortest Path
11
Queue
10
Subqueries
9
Topological Sort
9
Trie
7
Game Theory
6
Window Functions
6
API
3
Brainteaser
3
Probability
3
Reliability
3
Library
Practice
Create free account