I have plotted a 99x99 grid in this experiment. One can plot larger grids to see that the difference between the two grids (the Ulam spiral and the random spiral) becomes more apparent with larger sizes.
Update: After I made these text-plots, I found that Wikipedia has much better graphical plots that demonstrates the difference:
- Ulam spiral: https://en.wikipedia.org/wiki/File:Ulam_1.png
- Random spiral: https://en.wikipedia.org/wiki/File:Randomly_black_odd_number...
This doesn't seem to take into account that big prime numbers are less "likely" than small ones.
Moreover, the clustering is not limited to just diagonal lines. There are less prominent but high density clusters along horizontal and vertical lines too.
Trying picking random points on the black squares of a chessboard (same condition that you stated), they won't make obvious lines like that.