BALTIC-WAY 2003 Problem 17
All the positive divisors of a positive integer are stored into an array in increasing order. Mary has to write a program which decides for an arbitrarily chosen divisor whether it is a prime. Let have divisors not greater than . Mary claims that it suffices to check divisibility of by the first divisors of : If a divisor of greater than 1 is found among them, then is composite, otherwise d is prime. Is Mary right?
Dataset text NuminaMath olympiads. Quoted with source.
Solutions
No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.