Task: Program Execution
Input (English): 89, n, 257, d, g, 283
Output (English): 2, 3, 5, 7, 8, 9