April 24th, 2017, 05:29 PM  #21  
Senior Member Joined: Sep 2015 From: USA Posts: 1,977 Thanks: 1026  Quote:
 
April 24th, 2017, 05:42 PM  #22 
Math Team Joined: Oct 2011 From: Ottawa Ontario, Canada Posts: 12,612 Thanks: 845  
April 24th, 2017, 05:59 PM  #23 
Senior Member Joined: Sep 2015 From: USA Posts: 1,977 Thanks: 1026  
April 24th, 2017, 06:08 PM  #24 
Math Team Joined: Oct 2011 From: Ottawa Ontario, Canada Posts: 12,612 Thanks: 845  
April 24th, 2017, 07:41 PM  #25  
Senior Member Joined: Sep 2015 From: USA Posts: 1,977 Thanks: 1026  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, 08:01 PM  #26 
Math Team Joined: Oct 2011 From: Ottawa Ontario, Canada Posts: 12,612 Thanks: 845 
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 04:09 PM 
Geometry or weights?  mydisguise08  Geometry  2  September 2nd, 2009 04:07 PM 
Find previous weights from current weights & percent change  billiboy  Applied Math  4  June 15th, 2009 11:26 PM 
keyword relativity datatype weights and algorithm  totus  Applied Math  4  February 28th, 2009 09:08 PM 