آکادمی جوانه کد

مطالب آموزشی

اعضای آکادمی

ثبت نام

درباره آکادمی

تمرین برنامه نویسی ٣١

Write a program which writes each input number as sum of two prime numbers. Each case may contain more than one answer.

Goldbach's conjecture is one of the best-known unsolved problems in number theory. https://en.wikipedia.org/wiki/Goldbach%27s_conjecture

توضیحات

برنامه ای بنویسید که سعی کند هر عدد ورودی را به صورت جمع دو عدد اول محاسبه کند. ورودی فقط زوج و بزرگتر از ۲ هست. هر ورودی ممکن است بیش از یک جواب داشته باشد. حدس گلدباخ که یکی از مسائل معروف حل نشده ریاضی است. https://en.wikipedia.org/wiki/Goldbach%27s_conjecture

نمونه ورودی و خروجی

Input:

10
26
75
52

Output:

3, 7
3, 23
2, 73
23, 29