Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ai-nihar
/
Java
Public
forked from
TheAlgorithms/Java
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
Java
/
src
/
test
/
java
/
com
/
thealgorithms
/
maths
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Java
/
src
/
test
/
java
/
com
/
thealgorithms
/
maths
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
prime
prime
ADTFractionTest.java
ADTFractionTest.java
AbsoluteMaxTest.java
AbsoluteMaxTest.java
AbsoluteMinTest.java
AbsoluteMinTest.java
AbsoluteValueTest.java
AbsoluteValueTest.java
AliquotSumTest.java
AliquotSumTest.java
AmicableNumberTest.java
AmicableNumberTest.java
AreaTest.java
AreaTest.java
ArmstrongTest.java
ArmstrongTest.java
AutoCorrelationTest.java
AutoCorrelationTest.java
AutomorphicNumberTest.java
AutomorphicNumberTest.java
AverageTest.java
AverageTest.java
BinaryPowTest.java
BinaryPowTest.java
BinomialCoefficientTest.java
BinomialCoefficientTest.java
CatalanNumbersTest.java
CatalanNumbersTest.java
CeilTest.java
CeilTest.java
ChineseRemainderTheoremTest.java
ChineseRemainderTheoremTest.java
CollatzConjectureTest.java
CollatzConjectureTest.java
CombinationsTest.java
CombinationsTest.java
ConvolutionFFTTest.java
ConvolutionFFTTest.java
ConvolutionTest.java
ConvolutionTest.java
CrossCorrelationTest.java
CrossCorrelationTest.java
DeterminantOfMatrixTest.java
DeterminantOfMatrixTest.java
DigitalRootTest.java
DigitalRootTest.java
DistanceFormulaTest.java
DistanceFormulaTest.java
DudeneyNumberTest.java
DudeneyNumberTest.java
EulerMethodTest.java
EulerMethodTest.java
EulersFunctionTest.java
EulersFunctionTest.java
FFTTest.java
FFTTest.java
FactorialRecursionTest.java
FactorialRecursionTest.java
FactorialTest.java
FactorialTest.java
FastExponentiationTest.java
FastExponentiationTest.java
FastInverseSqrtTests.java
FastInverseSqrtTests.java
FibonacciJavaStreamsTest.java
FibonacciJavaStreamsTest.java
FibonacciLoopTest.java
FibonacciLoopTest.java
FibonacciNumberCheckTest.java
FibonacciNumberCheckTest.java
FibonacciNumberGoldenRationTest.java
FibonacciNumberGoldenRationTest.java
FindKthNumberTest.java
FindKthNumberTest.java
FindMaxRecursionTest.java
FindMaxRecursionTest.java
FindMaxTest.java
FindMaxTest.java
FindMinRecursionTest.java
FindMinRecursionTest.java
FindMinTest.java
FindMinTest.java
FloorTest.java
FloorTest.java
FrizzyNumberTest.java
FrizzyNumberTest.java
GCDRecursionTest.java
GCDRecursionTest.java
GCDTest.java
GCDTest.java
GaussianTest.java
GaussianTest.java
GenericRootTest.java
GenericRootTest.java
GoldbachConjectureTest.java
GoldbachConjectureTest.java
HarshadNumberTest.java
HarshadNumberTest.java
HeronsFormulaTest.java
HeronsFormulaTest.java
JosephusProblemTest.java
JosephusProblemTest.java
KaprekarNumbersTest.java
KaprekarNumbersTest.java
KaratsubaMultiplicationTest.java
KaratsubaMultiplicationTest.java
KrishnamurthyNumberTest.java
KrishnamurthyNumberTest.java
LeastCommonMultipleTest.java
LeastCommonMultipleTest.java
LeonardoNumberTest.java
LeonardoNumberTest.java
LongDivisionTest.java
LongDivisionTest.java
LucasSeriesTest.java
LucasSeriesTest.java
MathBuilderTest.java
MathBuilderTest.java
MaxValueTest.java
MaxValueTest.java
MeansTest.java
MeansTest.java
MedianTest.java
MedianTest.java
MinValueTest.java
MinValueTest.java
ModeTest.java
ModeTest.java
NonRepeatingElementTest.java
NonRepeatingElementTest.java
NthUglyNumberTest.java
NthUglyNumberTest.java
NumberOfDigitsTest.java
NumberOfDigitsTest.java
PalindromeNumberTest.java
PalindromeNumberTest.java
ParseIntegerTest.java
ParseIntegerTest.java
PascalTriangleTest.java
PascalTriangleTest.java
PerfectCubeTest.java
PerfectCubeTest.java
PerfectNumberTest.java
PerfectNumberTest.java
PerfectSquareTest.java
PerfectSquareTest.java
PerimeterTest.java
PerimeterTest.java
PollardRhoTest.java
PollardRhoTest.java
PowTest.java
PowTest.java
PowerOfTwoOrNotTest.java
PowerOfTwoOrNotTest.java
PowerUsingRecursionTest.java
PowerUsingRecursionTest.java
PronicNumberTest.java
PronicNumberTest.java
PythagoreanTripleTest.java
PythagoreanTripleTest.java
QuadraticEquationSolverTest.java
QuadraticEquationSolverTest.java
ReverseNumberTest.java
ReverseNumberTest.java
SecondMinMaxTest.java
SecondMinMaxTest.java
SieveOfEratosthenesTest.java
SieveOfEratosthenesTest.java
SolovayStrassenPrimalityTestTest.java
SolovayStrassenPrimalityTestTest.java
SquareFreeIntegerTest.java
SquareFreeIntegerTest.java
SquareRootWithNewtonRaphsonTestMethod.java
SquareRootWithNewtonRaphsonTestMethod.java
SquareRootwithBabylonianMethodTest.java
SquareRootwithBabylonianMethodTest.java
StandardDeviationTest.java
StandardDeviationTest.java
StandardScoreTest.java
StandardScoreTest.java
StrobogrammaticNumberTest.java
StrobogrammaticNumberTest.java
SumOfArithmeticSeriesTest.java
SumOfArithmeticSeriesTest.java
SumOfDigitsTest.java
SumOfDigitsTest.java
SumOfOddNumbersTest.java
SumOfOddNumbersTest.java
SumWithoutArithmeticOperatorsTest.java
SumWithoutArithmeticOperatorsTest.java
TestArmstrong.java
TestArmstrong.java
TwinPrimeTest.java
TwinPrimeTest.java
UniformNumbersTest.java
UniformNumbersTest.java
VampireNumberTest.java
VampireNumberTest.java
View all files
You can’t perform that action at this time.