Question 1
Input: 56 78 51 58 81 21 19 95
Step 1: Identify prime numbers: 19
Step 2: Identify composite numbers: 21 51 56 58 78 81 95
Step 3: Combine (primes first, then composites, each sorted ascending): 19 21 51 56 58 78 81 95
What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 19 21 51 56 58 78 81 95