DZone

A prime number is a number that is greater than 1 and divided by 1 or itself. In other words, prime numbers can’t be divided by other numbers than themselves or 1. For example 2, 3, 5, 7, 11, 13, 17, 19, 23…. are the prime numbers.

Note: Please use 3 or greater than 3 for this logic.

Source: DZone