Skip to main content

All Questions

3 votes
1 answer
820 views

Determine if points are within a rotated rectangle

Using only Python 2.7 and the standard library (no imports): Determine if a point is inside the rotated rectangle. ...
User1974's user avatar
  • 198
7 votes
2 answers
2k views

Program to find magic square of squares

I have a program which finds, well, a magic square of squares. The problem is, it's quite slow - it processes around 50 numbers in half a second when the number range is above 40,000. Is there any ...
Qwerp-Derp's user avatar
5 votes
1 answer
174 views

Generalized Project Euler 2: A sledgehammer to crack a nut

The task at hand I have previously asked about how optimizing Project Euler 1. See Generalized Project Euler 1: A sledgehammer to crack a nut. In this question I wanted to explore the next problem: ...
N3buchadnezzar's user avatar