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

Home > Numbers
Composing Composites (Posted on 2024-06-17) Difficulty: 2 of 5
What is the largest even positive integer that cannot be expressed as the sum of two composite odd numbers?

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution proposed computer solution | Comment 1 of 4
clearvars
oddComp=[]
for a=3:2:299
  for b=3:2:299
    oddComp(end+1)=a*b;
  end
end
oddComp=unique(oddComp);
sumlist=[]
for a=1:length(oddComp)
  for b=a:length(oddComp)
    s=oddComp(a)+oddComp(b);
    if ~ismember(s,sumlist)
      sumlist(end+1)=s;
    end
  end
end
goodlist=2:2:500;
goodlist=setdiff(goodlist,sumlist)

It lookks like the list stops at 38:
 
 2     4     6     8    10    12    14    16    20    22    26    28    32    38
 
The remaining numbers up through 500 all are sums of at least one pair of odd composites. 

  Posted by Charlie on 2024-06-18 06:57:53
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 (4)
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