An integer (call it 'x') has exactly 3 divisors if and only if it is the square of a Prime number.
In other words, to generate a list of integers with exactly 3 divisors, just keep squaring prime numbers.
A number with 3 divisors cannot be prime (a prime number has only 2 divisors, 1 and itself). So it must be a composite number, which is a number that can be factored as a product of prime numbers (Fundamental Theorem of Arithmetic) -- i.e. a composite number must have at least one prime divisor.
In the case where the number has only 3 divisors, two of them are 1 and the number itself (neither of which are prime). Therefore the third divisor must be a prime number.
So the three divisors of 'x' are: 1, p, x where p is prime.
Now since p is a divisor (or factor) of x, and the only other divisor besides 1 and x itself, x must equal p*p -- or x=p^2 . Obvious x can't equal p*x and if x = p*1, x=p so x is prime, or has only 2 divisors...
If x = p^(3) , then x = p*p* p , or p*(p^2) ... this means that p^2 would also have to be a divisor of x, and this would contradict with x having only 3 divisors. For the same reason, x = p^(greater than 3) is also not possible.
So the only possibility is that an integer with exactly 3 divisors is the square of a prime number "p". The divisors are 1, p, and p^2.
I'm sure there's a simpler, more elegant way of explaining this, but it should be clear enough.
Chat with our AI personalities
All numbers have divisors. Some numbers have some of the same divisors as other numbers. These are called common divisors. 3 is a divisor of 9. 3 is a divisor of 12. 3 is a common divisor of 9 and 12.
The smallest whole number that has exactly 6 distinct positive divisors is 12. The divisors of 12 are 1, 2, 3, 4, 6, and 12. These are the only positive integers that evenly divide 12, making it the smallest number with exactly 6 distinct positive divisors.
Squares of prime numbers have exactly three factors.
A divisor is another name for a factor. All counting numbers have divisors. In the equation 3 x 4 = 12, 3 and 4 are divisors of 12. -3 x -4 also equals 12, so some people distinguish between positive and negative divisors. A positive divisor is a divisor that is a positive number.
A composite number is a positive integer greater than 1 that has more than two distinct positive divisors. In this case, the number 51 is a composite number because it has divisors other than 1 and itself, such as 3 and 17. Numbers 31, 41, and 61 are all prime numbers, as they only have two distinct positive divisors, 1 and the number itself.