## You are here

HomeUlam spiral

## Primary tabs

# Ulam spiral

The Ulam spiral (or Ulam cloth) consists of integers, starting from a given $n$ at the center, written in a spiral with the prime numbers highlighted or emphasized in some way. For example, writing a spiral with 42 at the center,

90 | 67 | 68 | 69 | 70 | 71 | 72 |
---|---|---|---|---|---|---|

89 | 66 | 51 | 52 | 53 | 54 | 73 |

88 | 65 | 50 | 43 | 44 | 55 | 74 |

87 | 64 | 49 | 42 | 45 | 56 | 75 |

86 | 63 | 48 | 47 | 46 | 57 | 76 |

85 | 62 | 61 | 60 | 59 | 58 | 77 |

84 | 83 | 82 | 81 | 80 | 79 | 78 |

and then simply blanking the composites, we obtain

67 | 71 | |||||

89 | 53 | 73 | ||||

43 | ||||||

47 | ||||||

61 | 59 | |||||

83 | 79 |

Carrying on this process in more layers will show that most of the primes tend to fall on certain diagonals and not others.

This formation was first pondered by Stanisław Ulam with 1 at the center. He tried carrying out the process much further, and also tried different center values, but in each case the primes would cluster on certain diagonals and sparsely populate others. Because almost all primes are odd, it is easy to explain why they would tend to form diagonals, but much more difficult to explain why they fall on certain diagonals.

# References

- 1 Gardner, M. “Mathematical Recreations: The Remarkable Lore of the Prime Number” Scientific American 210 3: 120 - 128

## Mathematics Subject Classification

11A41*no label found*

- Forums
- Planetary Bugs
- HS/Secondary
- University/Tertiary
- Graduate/Advanced
- Industry/Practice
- Research Topics
- LaTeX help
- Math Comptetitions
- Math History
- Math Humor
- PlanetMath Comments
- PlanetMath System Updates and News
- PlanetMath help
- PlanetMath.ORG
- Strategic Communications Development
- The Math Pub
- Testing messages (ignore)

- Other useful stuff

## Recent Activity

new question: Prove a formula is part of the Gentzen System by LadyAnne

Mar 30

new question: A problem about Euler's totient function by mbhatia

new problem: Problem: Show that phi(a^n-1), (where phi is the Euler totient function), is divisible by n for any natural number n and any natural number a >1. by mbhatia

new problem: MSC browser just displays "No articles found. Up to ." by jaimeglz

Mar 26

new correction: Misspelled name by DavidSteinsaltz

Mar 21

new correction: underline-typo by Filipe

Mar 19

new correction: cocycle pro cocyle by pahio

Mar 7

new image: plot W(t) = P(waiting time <= t) (2nd attempt) by robert_dodier

new image: expected waiting time by robert_dodier

new image: plot W(t) = P(waiting time <= t) by robert_dodier