Want this question answered?
Now.... That depends on whether it is a number orr not!? :)
A number can be factored to determine whether it is prime or composite. A prime number has exactly 2 factors, 1 and the number itself. A composite number has more than two factors.
You cannot. If a number is even - other than 2 - then it is a composite number. However, if it is odd, it is not easily possible to tell whether it is prime or composite.
If a number is divisible by anything other than itself and 1, it's composite.
Ask us.
To prove whether a number is composite, factor it. A number having any factor besides 1 and itself is composite.
20 is a composite number
Now.... That depends on whether it is a number orr not!? :)
A number can be factored to determine whether it is prime or composite. A prime number has exactly 2 factors, 1 and the number itself. A composite number has more than two factors.
You cannot. If a number is even - other than 2 - then it is a composite number. However, if it is odd, it is not easily possible to tell whether it is prime or composite.
Write a program which takes any number of days from the user. the program should display the number of years, number of months formed by these days as well as the remaining days.
35 is a composite number because it has more than two factors
If a number is divisible by anything other than itself and 1, it's composite.
Ask us.
A prime number has only 2 factors which are 1 and itself. Composite numbers are everything else except 1 and 0. 1 and 0 are neither prime, nor composite.
You need at least two numbers to find an LCM. It doesn't matter whether they are prime or composite.
Prime numbers have only two factors. Composite numbers have more than two.