| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/oribach/Java/master/ProjectEuler/Problem09.java | [Back] [Original] |
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. * *
link: https://projecteuler.net/problem=9 */ public class Problem09 { public static void main(String[] args) { assert solution1() == 31875000; } private static int solution1() { for (int i = 0; i
| Web Proxy Viewer | New URL | Original Page |