Sha256: fd43d676a43ea5520731935dee91f1410ab41148dd438d776e317f5536a7d820
Contents?: true
Size: 331 Bytes
Versions: 115
Compression:
Stored size: 331 Bytes
Contents
public class Grains { public static ulong Square(int n) { return n == 1 ? 1 : 2 * Square(n - 1); } public static ulong Total() { ulong total = 0; for (int i = 1; i <= 64; i++) { total += Square(i); } return total; } }
Version data entries
115 entries across 115 versions & 1 rubygems