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

- Quick Sort Algorithm and Flowchart with implementation in Java [330 Views]
- Dijkstra's Algorithm and Flow Chart with Implementation in Java [197 Views]
- Prefix to Infix notation Algorithm and Flowchart [45 Views]
- Useful Tips for Manual Code Debugging [1244 Views]
- Setting Up Unity for Installing Application on Android Device [2441 Views]

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