(1032 Views)

A composite number is a positive integer number that is not prime number. In other words, it is a positive integer number which has at least one divisor other than 1 and itself. The composite numbers up to 20 are 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20.

For example:

Input: 10

Output: yes, its Composite (Because 10 has divisors other than 1 and itself, for ex, 2 or 5).

Output: no, its not Composite (Because 5 is a prime number, as it has no other divisors other than 1 and itself).

2 UpvotesUpvote |
1 DownvotesDownvote |

- 0/1 Knapsack problem with solution [6316 Views]
- Mumbai University Theoretical Computer Science (TCS) Semester 4 Important Notes Download [2106 Views]
- Can FOREIGN KEY column contain null value or duplicate values [748 Views]
- Debug Javascript code in Android Mobile Browser [2818 Views]
- Simple Augmented Reality Android Application Tutorial using Unity and Vuforia SDK [2386 Views]

- How To Win Ludo King Game Every Time [28686 Views]
- Algorithm to find whether number is Armstrong Number or Not [26430 Views]
- Knuth-Morris-Pratt (KMP) Substring Search Algorithm with Java Example [24378 Views]
- Jio Phone hang on LOGO problem Solution - Hard Reset Jio Phone [19442 Views]
- FlowChart and Algorithm to find Whether a Number is Even or Odd [14412 Views]