Skip to content

This repository features a collection of over 50+ number programs, all implemented in Java. Solutions for additional programs will be added in the near future.

Notifications You must be signed in to change notification settings

giriraj-g0511/Number-Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number-Programs

This repository contains 50+ Number programs in java designed to solve and verify various types of numbers, such as prime numbers, Armstrong numbers, decimal to binary, and many more. Users can easily check if a number belongs to a specific category by running the provided Java programs, and you can also find specific numbers within a given range.

Prerequisites

To fully understand and utilize these programs, you should have a basic knowledge of the following Java concepts:

  • Data types
  • Control flow (if-else statements, loops)
  • ASCII values
  • Methods (including return and break statements)
  • Scanner class and static members

Important Notes

  • Please enter only positive integers.
  • When converting from hexadecimal to decimal, ensure you enter only valid hexadecimal characters.
  • The names of program files may differ from those provided below.

List of Number Programs

  1. Abundant Number
  2. Adam Number
  3. Amicable Number
  4. Armstrong Number
  5. Automorphic Number
  6. Binary to Decimal
  7. Bouncy Number
  8. Catalan Number
  9. Circular Prime Number
  10. Cube Number
  11. Decimal to Binary
  12. Decimal to Hexadecimal
  13. Decimal to Octal
  14. Deficient Number
  15. Digit Count
  16. Digit Sum
  17. Disarium Number
  18. Duck Number
  19. Dudeney Number
  20. Evil Number
  21. Factor of a Number
  22. Factorial of a Number
  23. Fascinating Number
  24. Fermat Number
  25. Fermat Prime Number
  26. Fibonacci Number
  27. Harshad Number
  28. HCF of 2 Numbers
  29. Hexadecimal to Decimal
  30. Kaprekar Number
  31. LCM of 2 Numbers
  32. Lucas Number
  33. Magic Number
  34. Mersenne Number
  35. Mersenne Prime Number
  36. Neon Number
  37. Octal to Decimal
  38. Palindrome Number
  39. Pell Number
  40. Perfect Number
  41. Peterson Number
  42. Power of a Number
  43. Prime Number
  44. Pronic Number
  45. Ramanujan Number
  46. Reverse of a Number
  47. Smith Number
  48. Spy Number
  49. Square Number
  50. Sum of N Natural Numbers
  51. Sum of Digits of a Number
  52. SuperPrime Number
  53. Triangular Number
  54. Trimorphic Number
  55. Twisted Prime Number
  56. Ugly Number
  57. DemoRangeofNo
  58. RangeofNo

Finding Specific Numbers in a Range (e.g., Pell Numbers)

To find the range of specified numbers, a separate program is provided in the "RangeofNo.java" file.

  • Instructions:
    • Carefully read the instructions included in this file.
    • The "DemoRangeofNo.java" file demonstrates how to use the range program specifically for Pell numbers, showing the list of Pell numbers within user-specified starting and ending values.

This repository is an excellent resource for exploring number theory using Java! For any suggestions or to connect with me, please check out my portfolio.

About

This repository features a collection of over 50+ number programs, all implemented in Java. Solutions for additional programs will be added in the near future.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages