Problem 1023
In the first multiplication (in blue), all the numbers, represented by "?" are prime (they can only be 2, 3, 5 or 7).- 1A, 1B, 1C. Write its result.
In the second multiplication (in orange), the "A" represent odd numbers (1, 3, 5, 7 or 9), the "G" even numbers (0, 2, 4, 6 or 8).
- 2A, 2B, 2C. Write its result.
For each question, if there is only one answer, put it in box A. If there are several, write them in ascending order from the left, stopping at the column C, even if there are more than three possible answers.
For this problem, an exhaustive enumeration works fine. The only subtlety is to check the number of digits of the different results (intermediate and final). In order to be able to do the exploration, it is also necessary to convert an array of integers into a single integer ([1, 2] → 12) and conversely.
The code is available here.
The code is available here.
- 1A. 252 525.
- 2A. 29 036