(247 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 |

- Algorithm or Pseudocode to find whether a Number is Prime Number or Not [1329 Views]
- Download Machine Learning by Tom Mitchell PDF [756 Views]
- Algorithm and Flowchart for Implementing a Stack using Linked List [167 Views]
- Python Program to Check Armstrong number [379 Views]
- Download Machine Learning In Action by Peter Harrington PDF [357 Views]

- Knuth-Morris-Pratt (KMP) Substring Search Algorithm with Java Example [9705 Views]
- Pseudocode and Algorithm to find whether number is Armstrong Number or Not [8727 Views]
- How To Win Ludo King Game Every Time [8497 Views]
- error: Multiple commands produce error in Xcode 10 [5372 Views]
- FlowChart and Pseudocode to find Whether a Number is Even or Odd [4605 Views]