Question 1
Input: 66 76 78 74 50 88 97 43
Step 1: Identify prime numbers: 43 97
Step 2: Identify composite numbers: 50 66 74 76 78 88
Step 3: Combine (primes first, then composites, each sorted ascending): 43 97 50 66 74 76 78 88
What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 43 97 50 66 74 76 78 88