A positive integer is written on each corner of a square such that numbers on opposite vertices are relatively prime while numbers on adjacent vertices are not relatively prime. What is the smallest possible value of the sum of these 4 numbers?
Proposed by: Eshaan Nichani
Problem 1207
Official solution
Solution:
Answer: 60
Two opposite vertices are relatively prime, but they both share a factor with their common neighbor. So that common neighbor must have two prime factors. So each of the 4 numbers has two prime factors, which are not shared with the opposite vertex. Moreover, it suffices to choose the vertices to be the numbers , , , for some prime numbers . It's clear that we should choose them to be the smallest primes in some order. The order that minimizes the sum of all of the numbers gives for a sum of .