min sum by composite / primes numbers by cards 1-9
Source: 2022 May Olympiad L2 p2
September 4, 2022
number theory
Problem Statement
There are nine cards that have the digits and written on them, with one digit on each card. Using all the cards, some numbers are formed (for example, the numbers , , , and ).
a) If all the numbers formed are prime, determine the smallest possible value of their sum.
b) If all formed numbers are composite, determine the smallest possible value of their sum.Note: A number is prime if its only divisors are and . A number is composite if it has more than two dividers. The number is neither prime nor composite.