Feu un programa que, donat un natural n, escrigui tots els divisors primers de n.
Entrada
L’entrada és un nombre natural n≥1.
Sortida
La sortida són tots els divisors primers de n, de petit a gran, i tants cops com es pugui dividir n per aquell divisor primer.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.