Description: Windows|Linux|PHP|MySQL CrazyCen.Com
php (15957) windows (7393) linux (6804) mysql (4337) crazycen.com (1) 我为技术狂 (1)
A ring is composed of n (even number) circles as shown in diagram. Put natural numbers 1, 2, . . . , n into each circle separately, and the sum of numbers in two adjacent circles should be a prime. Note: the number of first circle should always be 1. > > 继续阅读
It is easy to see that for every fraction in the form 1/k(k > 0), we can always find two positive integers x and y, x ≥ y, such that: 1/k= 1/x + 1/y
Now our question is: can you write a program that counts how many such pairs of x and y there ar > > 继续阅读