MathDB
Sum of numbers with largest prime divisor odd

Source: Pan-American Girls’ Mathematical Olympiad 2023 P1

August 8, 2023
smallest prime divisorLargest prime divisornumber theoryPAGMO

Problem Statement

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