8.35

The Prime Number Spiral (a.k.a. the Ulam Spiral) is built as follows: think about a rectangular grid. We begin using the central stage and arrange the good integers inside a spiral fashion (anticlockwise). There is really a tendency for that prime amounts to happen on diagonal lines, nevertheless much out to the spiral 1 goes. The prime amounts are then marked. It as well (a) enables coloring from the prime amounts in diverse methods, (b) shows a arbitrary arrangement to evaluate using the primes and (c) exhibits how rectangular and triangular amounts are situated about the spiral. This really is program is for exploring the Prime Number Spiral.