ClearAll[spiral];
spiral[n_?OddQ] :=
Nest[With[{d = Length@#, l = #[[-1, -1]]},
Composition[Insert[#, l + 3 d + 2 + Range[d + 2], -1] &,
Insert[#\[Transpose], l + 2 d + 1 + Range[d + 1],
1]\[Transpose] &,
Insert[#, l + d + Range[d + 1, 1, -1], 1] &,
Insert[#\[Transpose],
l + Range[d, 1, -1], -1]\[Transpose] &][#]] &, {{1}}, (n -
1)/2];
spiral[351] // PrimeQ // Boole // ArrayPlot
Export["Color351.pdf", %]
Code is from other post on the forum, credit to the OP. The question is, the exported PDF does not seem to have saved the graph in a lossless vector format.
This is what I get from the adobe acrobat:
If you go back and look at the picture from MMA10.2 X64 (win7), we can zoom in/out, the graph is still very sharp, in high resolution.
If there a way to save/export it with much higher quality?
Thanks.