April 24th, 2017, 06:29 PM  #21  
Senior Member Joined: Sep 2015 From: Southern California, USA Posts: 1,607 Thanks: 819  Quote:
 
April 24th, 2017, 06:42 PM  #22 
Math Team Joined: Oct 2011 From: Ottawa Ontario, Canada Posts: 10,927 Thanks: 718  
April 24th, 2017, 06:59 PM  #23 
Senior Member Joined: Sep 2015 From: Southern California, USA Posts: 1,607 Thanks: 819  
April 24th, 2017, 07:08 PM  #24 
Math Team Joined: Oct 2011 From: Ottawa Ontario, Canada Posts: 10,927 Thanks: 718  
April 24th, 2017, 08:41 PM  #25  
Senior Member Joined: Sep 2015 From: Southern California, USA Posts: 1,607 Thanks: 819  Quote:
Small mod gets me 129157 in 1.55 seconds this is very dumb code though. It's testing whole ranges of combos it doesn't need to.  
April 24th, 2017, 09:01 PM  #26 
Math Team Joined: Oct 2011 From: Ottawa Ontario, Canada Posts: 10,927 Thanks: 718 
Thanks. UBasic takes under 1 second; so pretty much the same. Takes ~5.4 seconds if each is screenprinted. Loops 6 variables from 1 to 9, adds them, skips count if > 25. 

Tags 
combinations, line, sequences, weights 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Unequal Weights  mathmaniac  Physics  24  February 1st, 2013 05:09 PM 
Geometry or weights?  mydisguise08  Geometry  2  September 2nd, 2009 05:07 PM 
Find previous weights from current weights & percent change  billiboy  Applied Math  4  June 16th, 2009 12:26 AM 
keyword relativity datatype weights and algorithm  totus  Applied Math  4  February 28th, 2009 10:08 PM 