Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

starting problem 9

  • Loading branch information...
commit c53b7cec6dde419d22639df55a9cb5b218b071f0 1 parent 1249b35
Joseph Silvashy authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 ruby/problem_009.rb
18 ruby/problem_009.rb
View
@@ -0,0 +1,18 @@
+#! /usr/bin/env ruby
+
+# http://projecteuler.net/problem=9
+
+# A Pythagorean triplet is a set of three natural numbers, a b c, for which,
+
+# a^2 + b^2 = c^2
+
+# For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
+
+# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
+# Find the product abc.
+
+require "benchmark"
+
+end
+
+puts time
Please sign in to comment.
Something went wrong with that request. Please try again.