International Journal of Innovative Research in Engineering & Multidisciplinary Physical Sciences
E-ISSN: 2349-7300Impact Factor - 9.907

A Widely Indexed Open Access Peer Reviewed Online Scholarly International Journal

Call for Paper Volume 12 Issue 6 November-December 2024 Submit your research for publication

Finding Prime Numbers in a Given Interval Using Java

Authors: K. Naga Vihari

Country: India

Full-text Research PDF File:   View   |   Download


Abstract: Prime numbers, which are natural numbers larger than one that have no divisors other than themselves, have long piqued the interest of mathematicians and programmers alike. This article describes a Java software that finds and displays prime integers inside a user-defined interval. The software achieves simplicity and efficiency by utilizing the modulus operator and streamlining the prime-checking method to investigate divisibility only up to a number's square root. This strategy considerably decreases temporal complexity, allowing the software to handle greater periods easily. The essay also discusses the practical uses of prime numbers in fields such as cryptography, hashing algorithms, and digital signatures, emphasizing the significance of knowing prime number identification in both theoretical and applied settings.

Keywords: Performance Optimization, Prime Numbers, Java Programming


Paper Id: 231399

Published On: 2024-10-26

Published In: Volume 12, Issue 5, September-October 2024

Cite This: Finding Prime Numbers in a Given Interval Using Java - K. Naga Vihari - IJIRMPS Volume 12, Issue 5, September-October 2024.

Share this