Task: Program Execution
Input (English): 331, 21, 239, n, 497, 427, 479
Output (English): 1, 2, 3, 4, 7, 9