Question 1
Input: 24 14 34 97 15 69 81 47
Step 1: Identify prime numbers: 47 97
Step 2: Identify composite numbers: 14 15 24 34 69 81
Step 3: Combine (primes first, then composites, each sorted ascending): 47 97 14 15 24 34 69 81
What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 47 97 14 15 24 34 69 81