← back

Number Theory

84 questions · 0 seen

All Number Theory problems

Problems

204 Count Primes
258 Add Digits
858 Mirror Reflection
866 Prime Palindrome
914 X of a Kind in a Deck of Cards
952 Largest Component Size by Common Factor
1201 Ugly Number III
1250 Check If It Is a Good Array
1447 Simplified Fractions
1492 The kth Factor of n
1627 Graph Connectivity With Threshold
1735 Count Ways to Make Array With Product
1766 Tree of Coprimes
1799 Maximize Score After N Operations
1808 Maximize Number of Nice Divisors
1819 Number of Different Subsequences GCDs
1952 Three Divisors
1979 Find Greatest Common Divisor of Array
1994 The Number of Good Subsets
1998 GCD Sort of an Array (PRO)
2001 Number of Pairs of Interchangeable Rectangles
2117 Abbreviating the Product of a Range
2183 Count Array Pairs Divisible by K
2197 Replace Non-Coprime Numbers in Array
2221 Find Triangular Sum of an Array
2280 Minimum Lines to Represent a Line Chart
2338 Count the Number of Ideal Arrays
2344 Minimum Deletions to Make Array Divisible
2413 Smallest Even Multiple
2427 Number of Common Factors
2447 Number of Subarrays With GCD Equal to K
2470 Number of Subarrays With LCM Equal to K
2507 Smallest Value After Replacing With Sum of Prime Factors
2513 Minimize the Maximum of Two Arrays
2521 Distinct Prime Factors of Product of Array
2523 Closest Prime Numbers in Range
2543 Check if Point Is Reachable
2584 Split the Array to Make Coprime Products
2601 Prime Subtraction Operation
2607 Make K-Subarray Sums Equal
2614 Prime In Diagonal
2654 Minimum Number of Operations to Make All Array Elements Equal to 1
2709 Greatest Common Divisor Traversal (PRO)
2748 Number of Beautiful Pairs
2761 Prime Pairs With Target Sum
2807 Insert Greatest Common Divisors in Linked List
2818 Apply Operations to Maximize Score
2862 Maximum Element-Sum of a Complete Subset of Indices
2867 Count Valid Paths in a Tree
2947 Count Beautiful Substrings I
2949 Count Beautiful Substrings II
3012 Minimize Length of Array Using Operations
3044 Most Frequent Prime
3115 Maximum Prime Difference
3116 Kth Smallest Amount With Single Denomination Combination
3233 Find the Count of Numbers Which Are Not Special
3260 Find the Largest Palindrome Divisible by K
3312 Sorted GCD Pair Queries (PRO)
3326 Minimum Division Operations to Make Array Non Decreasing
3334 Find the Maximum Factor Score of Array
3336 Find the Number of Subsequences With Equal GCD
3348 Smallest Divisible Digit Product II
3377 Digit Operations to Make Two Integers Equal
3378 Count Connected Components in LCM Graph
3411 Maximum Subarray With Equal Products
3444 Minimum Increments for Target Multiples in an Array
3461 Check If Digits Are Equal in String After Operations I
3463 Check If Digits Are Equal in String After Operations II
3556 Sum of Largest Prime Substrings
3569 Maximize Count of Distinct Primes After Split
3574 Maximize Subarray GCD Score
3589 Count Prime-Gap Balanced Subarrays
3591 Check if Any Element Has Prime Frequency
3605 Minimum Stability Factor of Array
3618 Split Array by Prime Indices
3629 Minimum Jumps to Reach End via Prime Teleportation
3658 GCD of Odd and Even Sums
3669 Balanced K-Factor Decomposition
3671 Sum of Beautiful Subsequences
3715 Sum of Perfect Square Ancestors
3725 Count Ways to Choose Coprime Integers from Rows
3765 Complete Prime Number
3770 Largest Prime from Consecutive Prime Sum
3850 Count Sequences to K