Anonymous user
Primality by trial division: Difference between revisions
m
→{{header|PARI/GP}}
No edit summary |
|||
Line 675:
=={{header|PARI/GP}}==
<lang parigp>trial(n)={
if(n
if(n%p == 0, return(0))
);
|