Skip to content

Instantly share code, notes, and snippets.

@Finomnis
Finomnis / gist:ad0a8480fae4565ffaae
Last active August 29, 2015 14:03
Transform Reduce Initial Idea
This is how our current reduce algorithm works.
A A A A A A A A
split:
A A A A A A A A
accumulate:
A A A A
initial B->+->+->+->+->B
#!/usr/bin/env python3
import math
import time
def isPrime(n):
max_divisor = math.floor(math.sqrt(n))
for d in range(2, max_divisor+1):
if n % d == 0:
return False
@Finomnis
Finomnis / canonballs_100000.txt
Created April 9, 2019 11:13
All canonball numbers from 3- to 100,00-gon pyramids
===== 3-gon =====
10 (3, 4)
120 (8, 15)
1540 (20, 55)
7140 (34, 119)
===== 4-gon =====
4900 (24, 70)
@Finomnis
Finomnis / Test.java
Last active November 10, 2019 16:03
public class Test {
private static class A{
public static void test(){
System.out.println("A:test");
}
void dynamic(){
System.out.println("A:dynamic");
}