This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===== 3-gon ===== | |
10 (3, 4) | |
120 (8, 15) | |
1540 (20, 55) | |
7140 (34, 119) | |
===== 4-gon ===== | |
4900 (24, 70) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test { | |
private static class A{ | |
public static void test(){ | |
System.out.println("A:test"); | |
} | |
void dynamic(){ | |
System.out.println("A:dynamic"); | |
} |