Question 1
Input: 58 50 85 11 87 69 20 66
Step 1: Identify prime numbers: 11
Step 2: Identify composite numbers: 20 50 58 66 69 85 87
Step 3: Combine (primes first, then composites, each sorted ascending): 11 20 50 58 66 69 85 87
What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 11 20 50 58 66 69 85 87