Problem

Source: Oliforum Contest V 2017 p4 https://artofproblemsolving.com/community/c2487525_oliforum_contes

Tags: number theory, primes



Let pn be the n-th prime, so that p1=2,p2=3,... and define Xn={0}{p1,...,pn}for each positive integer n. Find all n for which there exist A,BN such that|A|,|B|2 and Xn=A+B, where A+B:={a+b:aA;bB} and N:={0,1,2,...}. (Salvatore Tringali)