Template:Ulam spiral

{{documentation|content= {{lua|Module:Ulam spiral}} Produces an Ulam spiral.

Usage
where 11 is the number of rows and columns (11 x 11) and 0 is the start number, returns

The maximum accepted value for rows/columns is 75.

Example
Larger dimensions also display green (numbers with just 3 divisors) and red (numbers with 25 or more divisors) coloured backgrounds, and the font size is adjusted automatically. E.g.

}}