Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
#!/usr/bin/env ruby -wKU palindrome = 0 (100..999).each do |a| (100..999).each do |b| product = (a*b).to_s palindrome = [product.to_i, palindrome].max if product == product.reverse end end p palindrome
This paste will be private.
From the Design Piracy series on my blog: