Description Usage Arguments References Examples
Write the numbers from 1 to n in a square spiral and mark all primes.
1 | ulam_spiral(sidelength)
|
sidelength |
The side length of the spiral. |
The Numberphile video featuring James Grime and Brady Haran: Prime Spirals.
1 2 | us <- ulam_spiral(100)
grid::grid.raster(!us, interpolate = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.