DSA/algorithms/Java/Maths
Devesh Mehara 5fbf6934f7
added new algo. into : algorithms/java/Maths dir..
For a given number N check if it is prime or not. A prime number is a number which is only divisible by 1 and itself.
 Example 1:

Input:
N = 5
Output:
1
Explanation:
5 has 2 factors 1 and 5 only.

PR Checklist:

 My submission is formatted according to the guidelines in the contributing guide
 My addition is on refer on the language README.md file
 My addition does not have a spelling problem
 My submission has a proper and user-friendly description of the algorithm
 My submission has the time complexity of the algorithm
 My submission has sample input-output of the program (NOT FOR PYTHON)
What kind of change does this PR introduce? (check at least one)

 Bugfix
 New algorithm
 Optimization in previous algorithms
 Code style update
 Refactor
 Documentation
 Other, please describe:
Briefly describe the changes in this PR
code added for longest palindromic substring
2022-10-03 09:57:00 +05:30
..
Nth_Fibonacci.java chore(Java): added fibonacci using matrix exponentiation (#540) 2022-01-17 14:29:19 -04:00
algorithms_random_node.java chore(Java): add random node in linked list (#641) 2021-11-29 08:41:33 -04:00
catalan-numbers.java chore(Java): add Catalan Numbers and Priority queue (#577) 2021-10-17 14:37:27 -04:00
check-prim-or-not.java added new algo. into : algorithms/java/Maths dir.. 2022-10-03 09:57:00 +05:30
factorial_using_big_integer.java chore(Java): add factorial of a number using Big Integer (#339) 2021-06-07 08:54:20 -04:00
nth-geek-onacci-number.java chore(Java): add nth geek-onacci number (#608) 2021-10-20 14:59:07 -04:00
roman-numerals.java chore(Java) : add roman numerals conversion (#849) 2022-10-01 02:41:58 +05:30
square-root.java chore(Java): add square root using binary search (#826) 2022-09-04 20:55:17 -04:00