From a1e47d4d32656b874a8961142e8c6c76b826f451 Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Thu, 14 Sep 2023 14:23:11 -0400 Subject: [PATCH] Starting template --- src/projectEuler/question9.hs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/projectEuler/question9.hs diff --git a/src/projectEuler/question9.hs b/src/projectEuler/question9.hs new file mode 100644 index 0000000..9958920 --- /dev/null +++ b/src/projectEuler/question9.hs @@ -0,0 +1,32 @@ +{- +Special Pythagorean Triplet +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`. +-} + +main :: IO () +main = print answer + +answer :: String +answer = "I dunno" + + + + + + + + + + + +