A prime number is a number which is not divisible by any other number except 1 and itself. the java program given below is to print prime numbers from 1 to 100 or can print prime numbers between 1 to n. the basic logic is to identify a number is prime or not is in […]

# Category: programming examples

## prime number program in java

A prime number is a number greater than 1, and which is divisible only by itself and 1. although 1 is not a prime number because as per definition of prime number, number should be greater than one. so after reading the definition we can identify the prime numbers. like 2,3,5,7, 11 etc. this post […]