PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
PhantomCodeAIPhantomCodeAI
FeaturesMock InterviewDashboardJobsPricing
FeaturesMock InterviewDashboardJobsPricing
HomeLeetCode ProblemsNumber Theory

Number Theory Problems

73 Number Theory LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

204Count PrimesMedium258Add DigitsEasy858Mirror ReflectionMedium866Prime PalindromeMedium914X of a Kind in a Deck of CardsEasy952Largest Component Size by Common FactorHard1201Ugly Number IIIMedium1250Check If It Is a Good ArrayHard1447Simplified FractionsMedium1492The kth Factor of nMedium1627Graph Connectivity With ThresholdHard1735Count Ways to Make Array With ProductHard1766Tree of CoprimesHard1799Maximize Score After N OperationsHard1808Maximize Number of Nice DivisorsHard1819Number of Different Subsequences GCDsHard1952Three DivisorsEasy1979Find Greatest Common Divisor of ArrayEasy1994The Number of Good SubsetsHard1998GCD Sort of an ArrayHard2001Number of Pairs of Interchangeable RectanglesMedium2183Count Array Pairs Divisible by KHard2197Replace Non-Coprime Numbers in ArrayHard2280Minimum Lines to Represent a Line ChartMedium2338Count the Number of Ideal ArraysHard2344Minimum Deletions to Make Array DivisibleHard2413Smallest Even MultipleEasy2427Number of Common FactorsEasy2447Number of Subarrays With GCD Equal to KMedium2470Number of Subarrays With LCM Equal to KMedium2507Smallest Value After Replacing With Sum of Prime FactorsMedium2513Minimize the Maximum of Two ArraysMedium2521Distinct Prime Factors of Product of ArrayMedium2523Closest Prime Numbers in RangeMedium2543Check if Point Is ReachableHard2584Split the Array to Make Coprime ProductsHard2601Prime Subtraction OperationMedium2607Make K-Subarray Sums EqualMedium2614Prime In DiagonalEasy2654Minimum Number of Operations to Make All Array Elements Equal to 1Medium2709Greatest Common Divisor TraversalHard2748Number of Beautiful PairsEasy2761Prime Pairs With Target SumMedium2807Insert Greatest Common Divisors in Linked ListMedium2818Apply Operations to Maximize ScoreHard2862Maximum Element-Sum of a Complete Subset of IndicesHard2867Count Valid Paths in a TreeHard2947Count Beautiful Substrings IMedium2949Count Beautiful Substrings IIHard3012Minimize Length of Array Using OperationsMedium3044Most Frequent PrimeMedium3115Maximum Prime DifferenceMedium3116Kth Smallest Amount With Single Denomination CombinationHard3233Find the Count of Numbers Which Are Not SpecialMedium3260Find the Largest Palindrome Divisible by KHard3312Sorted GCD Pair QueriesHard3326Minimum Division Operations to Make Array Non DecreasingMedium3334Find the Maximum Factor Score of ArrayMedium3336Find the Number of Subsequences With Equal GCDHard3348Smallest Divisible Digit Product IIHard3377Digit Operations to Make Two Integers EqualMedium3378Count Connected Components in LCM GraphHard3411Maximum Subarray With Equal ProductsEasy3444Minimum Increments for Target Multiples in an ArrayHard3461Check If Digits Are Equal in String After Operations IEasy3463Check If Digits Are Equal in String After Operations IIHard3556Sum of Largest Prime SubstringsMedium3569Maximize Count of Distinct Primes After SplitHard3574Maximize Subarray GCD ScoreHard3589Count Prime-Gap Balanced SubarraysMedium3591Check if Any Element Has Prime FrequencyEasy3605Minimum Stability Factor of ArrayHard3618Split Array by Prime IndicesMedium
← Browse all LeetCode problems
PhantomCodeAIPhantomCodeAI
PhantomCodeAI is an undetectable desktop application to help you pass your Leetcode interviews.
All systems online
Download

Legal

Refund PolicyTerms of ServiceCancellation PolicyPrivacy Policy

Pages

Contact SupportHelp CenterInstant SupportFAQBlogFeaturesInterview CopilotCoding CopilotInterview QuestionsPricingMock Interview PricingEarn with UsBest AI Interview Assistants 2026FeedbackLeetcode ProblemsLoginCreate Account

Compare

All 29 comparisons →Why switch (29 alternatives) →Interview Coder AlternativeFinal Round AI AlternativeUltraCode AI AlternativeParakeet AI AlternativeAI Apply AlternativeCoderRank AlternativeInterviewing.io AlternativeShadeCoder Alternative

Resources

Salary GuideResume TemplatesWhat Is PhantomCodeAIIs PhantomCodeAI Detectable?Use PhantomCodeAI in HackerRankvs LeetCode PremiumFor European EngineersFor FAANG Interview PrepPost-Layoff ComebackIndia Pricing (INR)

Interview Types

Coding InterviewSystem Design InterviewDSA InterviewLeetCode InterviewAlgorithms InterviewData Structure InterviewSQL InterviewOnline Assessment

Interview Questions

See all →
GoogleAmazonMetaMicrosoftAppleNetflixStripeUberAirbnbBloombergSoftware EngineerFrontend EngineerBackend EngineerData EngineerML EngineerDevOps EngineerData ScientistEngineering ManagerBehavioralSystem Design

Mock Interview by Round Type

All formats →
Mock Interview HubMock Coding InterviewMock Behavioral InterviewMock System Design

AI for Industry Interviews

All industries →
Sales InterviewsPM InterviewsFinance InterviewsConsulting InterviewsDesign Interviews

Coding Interview Patterns

See all patterns →
Coding Interviews HubDynamic ProgrammingTwo Pointers + Sliding WindowGraph AlgorithmsTree AlgorithmsBinary Search

Interview Guides

See all guides →
How to Ace an InterviewHow to Crack InterviewsBest Interview AnswersScreening Interview QuestionsTelephone Interview TipsWorking Interview ExplainedCracking the PM InterviewFAANG 30-Day RoadmapTop 10 LeetCode PatternsSystem Design Prep GuideSTAR Behavioral MethodBehavioral Interview Qs

Alternatives — why engineers switch

See all 29 →
Interview CoderFinal Round AIParakeet AILockedIn AIUltraCode AIShadeCoderSensei AIVerve AICluelyChatGPTBeyz AIInterview SidekickYoodliAlgoMonsterCoderRankExponentFormationInterviewing.ioInterview CakeBig InterviewInterview KickstartPrampScalerAI ApplyCareerflowJobscanKickresumeTeal HQHireVue

AI Interview Tools

AI Interview AssistantAI Interview CoachAI for Job InterviewsAI Interview Preparation ToolReal-Time AI Interview AnswersInterview AI HelperReal-Time AI Interview AssistantAI Interview BotBest AI Interview Tools 2026AI Interview QuestionsPractice Interview QuestionsAI to Answer Interview QuestionsAI Phone Interview HelpAI Interviewing SoftwareAI Interview HubInterview CopilotAI Coding Interview AssistantMock Interview

© 2026 PhantomCodeAI. All rights reserved.