Problem

Source: Pan-American Girls’ Mathematical Olympiad 2023 P1

Tags: smallest prime divisor, Largest prime divisor, number theory, PAGMO



An integer \(n \geq 2\) is said to be tuanis if, when you add the smallest prime divisor of \(n\) and the largest prime divisor of \(n\) (these divisors can be the same), you obtain an odd result. Calculate the sum of all tuanis numbers that are less or equal to \(2023\).