Round 1: AAAAAA (Works up to N ~ 100. Really need to optimize).
Round 1: AAAAAA (N=200 in ~5s, N=400 in ~2min, switching to Java).
Round 1: Did a shitty port of AAAAAA to Java. Submitted.