From 68833c96ba84d2bc8fc67b9e38016389974ac429 Mon Sep 17 00:00:00 2001 From: Norbert Najderek Date: Thu, 4 Aug 2016 12:13:00 +0200 Subject: [PATCH] optional perfect number solution public class PerfectNumber { public static void main(String[] args) { perfect(10000); } //print all perfect numbers from 1 to n public static void perfect(int n){ for (int i = 1; ik }"); @@ -38,4 +38,4 @@ static int BK(int n, int k) { if(n < k) return 0; return Fakultät(n) / (Fakultät(k) * Fakultät(n-k)); -} } \ No newline at end of file +} }