Varanasi-Software-Junction / JavaCodecamp

Java code repository of Varanasi Software Junction. Its public and free for use. Please star if you find it useful
MIT License
11 stars 5 forks source link

Prime Numbers #6

Open vishalkumar51095 opened 3 years ago

vishalkumar51095 commented 3 years ago
  1. Find all prime numbers till 500
  2. Calculate the power of a number using loops 3^4
  3. Find cube root of a number using while loop
  4. Convert decimal to binary, octal and hexadecimal
  5. Convert hex, octal and binary to decimal
  6. Check for a happy number
  7. Check for a palindrome
  8. Check if 2 numbers are anagrams. 123 and 312 are anagrams
  9. 12345 12354. Find the next largest number using the same digits. If no number exists say no 54321
  10. Generate all permutations and combinations of a number. 123= 1,2,3, 12, 13, 23, 123,'' Permutations 1,2,3 132, 213, 231, 312, 321