All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Pairs of Prime Factors (Posted on 2009-05-24) Difficulty: 3 of 5
Two 2-digit numbers add up to a third 2-digit number. Each of the three numbers is the product of two primes. Each of the six primes is different.

If you take the two addends and combine the tens digit of one with the units digit of the other, and vice versa, they will of course add up to the same 2-digit number as before. But in addition, for these chosen numbers, the two mixed numbers (the new addends) are each also the product of two primes, and these six primes also are all different, but may contain repeats from the first set of six.

What are the numbers involved?

  Submitted by Charlie    
No Rating
Solution: (Hide)

38 + 55 = 93  (2*19 + 5*11 = 3*31)
58 + 35 = 93  (2*29 + 5*7 = 3*31)


   5   dim Cmp(40)
  10   loop
  20   P1=nxtprm(P1)
  25    P2=P1
  28     loop
  30      P2=nxtprm(P2)
  40      if P1*P2>9 and P1*P2<100 then print P1*P2
  45                  :inc Cct:Cmp(Cct)=P1*P2
 100      if P1*P2>100 then goto *Leaveinner
 110     endloop
 120   *Leaveinner
 130   if P1>100 then goto *Leaveouter
 140   endloop
 150   *Leaveouter
 160   print Cct
 200   for I=1 to Cct-1
 210    for J=I+1 to Cct
 220       T=Cmp(I)+Cmp(J)
 230       if T<100 then
 240        :for K=1 to Cct
 250          :if K<>I and K<>J then
 260             :if Cmp(K)=T then gosub 1000
 270          :endif
 280        :next
 290     next
 300   next
 999   end
1000   A=prmdiv(Cmp(I)):B=Cmp(I)/A
1005   C=prmdiv(Cmp(J)):D=Cmp(J)/C
1010   E=prmdiv(T):F=T/E
1020   if A<>B and A<>C and A<>D and A<>E and A<>F then
1030   :if B<>C and B<>D and B<>E and B<>F then
1040   :if C<>D and C<>E and C<>F then
1050   :if D<>E and D<>F and E<>F then
1060   :C1=Cmp(I):C2=Cmp(J):C1h=C1
1070   :C1=10*(C1\10)+C2@10
1071   :C2=10*(C2\10)+C1h@10
1080   :A=prmdiv(C1):B=int(C1/A)
1085   :C=prmdiv(C2):D=int(C2/C)
1090   :if B>1 and prmdiv(B)=B and D>1 and prmdiv(D)=D then
1120   :if A<>B and A<>C and A<>D and A<>E and A<>F then
1130   :if B<>C and B<>D and B<>E and B<>F then
1140   :if C<>D and C<>E and C<>F then
1150   :if D<>E and D<>F and E<>F then
1990   :print Cmp(I);Cmp(J),T
2000   return

The 2-digit products of two primes:

10
14
22
26
34
38
46
58
62
74
82
86
94
15
21
33
39
51
57
69
87
93
35
55
65
85
95
77
91
29

The pairs that add to another while their swapped-digit versions are also members:

34  35          69
38  39          77
38  55          93
58  35          93
39  35          74

Only for the two pairs that add to 93 does the interchange make different numbers.

From Enigma No. 1538, "Six factors", by Richard England, New Scientist, 28 March 2009.

Comments: ( You must be logged in to post comments.)
  Subject Author Date
Puzzle AnswerK Sengupta2022-07-13 21:50:58
SolutionsolutionDej Mar2009-05-24 19:34:44
mathematica solutionDaniel2009-05-24 15:08:38
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (17)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information