Qualifier round Chef and semi primes

Do we have to take input and display output one at a time or take all inputs first and then display output?

we have to take input one a time because sometimes this thing help us to to check our progress while doing the task
or all the input together will good at some places rather than once a time
therefore it depend upon the what task we are performing

you can do either way.

did any one submitted successfully that “chef and semi primes” question!??

I have found some pairs for number 62 but in example it say that it has none.
The pairs are: pair 4 + 58 = 62
pair 6 + 56 = 62
pair 9 + 53 = 62
pair 10 + 52 = 62
pair 14 + 48 = 62
pair 15 + 47 = 62
pair 21 + 41 = 62
pair 22 + 40 = 62
pair 26 + 36 = 62
pair 33 + 29 = 62
pair 34 + 28 = 62