content: -- Project Euler <https://projecteuler.net>
  -- Problem: 1
  -- Solution: 2
  -- Author: Sean Broderick <hakutsuru@mac.com>
  -- Date: 2015-05-05
  
  
  local factor_a
  local factor_b
  local threshold_limit
  local multiples_sum
  local counter
  
  set multiples_sum to 0
  set threshold_limit to 999
  
  set factor_a to 3
  set factor_b to 5
  
  repeat with counter from factor_a to threshold_limit by factor_a
  	set multiples_sum to (multiples_sum + counter)
  end repeat
  
  repeat with counter from factor_b to threshold_limit by factor_b
  	set multiple_a to ((counter mod factor_a) is 0)
  	if not multiple_a then
  		set multiples_sum to (multiples_sum + counter)
  	end if
  end repeat
  
  
  -- Result (multiples_sum):
  -- ... threshold_limit = 9, Result = 23
  -- ... threshold_limit = 999, Result = 233168
  -- ... threshold_limit = 999999, Result = 233333166668, duration = 0.43s
  