Uva Goldbach's Conjecture # 543

Problem Link : Uva 543

solution :