[pstricks] Sieve

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed May 27 19:47:49 CEST 2009


David Arnold schrieb:
> All, I came up with this:
> 
[ ... ]

\documentclass{article}
\usepackage{pstricks-add}
\begin{document}

\begin{pspicture}(0,0)(10,-10)
\psgrid[subgriddiv=1,gridlabels=0pt]
\multido{\iA=2+1}{99}{%
    \rput(!\iA\space 2 sub 10 mod 0.5 add
           \iA\space 2 sub 10 div cvi 0.5 add neg){\iA}}
\end{pspicture}

\end{document}


Herbert


More information about the PSTricks mailing list