Skip to main content
2 of 4
-20 chars, work in progress still
Paul Prestidge
  • 2.4k
  • 15
  • 21

Ruby, 90

Based on @manatwork's answer.

gets;~/ /
$><<(1..$`.to_i).select{|d|(1..$'.to_i).inject(0){|v,m|v+(d%m<1?d/m :0)}%2>0}*$&

Those dodgy globals always break syntax highlighting!

Paul Prestidge
  • 2.4k
  • 15
  • 21