Project Euler code - various languages