Count in factors: Difference between revisions
→{{header|PARI/GP}}: Refactor
Jazzedpineda (talk | contribs) (→DWScript: Add EasyLang) |
(→{{header|PARI/GP}}: Refactor) |
||
Line 3,317:
=={{header|PARI/GP}}==
<syntaxhighlight lang="parigp">
fnice(n)={
my(f,s="",s1);
if (n < 2, return(n));
Line 3,323 ⟶ 3,324:
s = Str(s, f[1,1]);
if (f[1, 2] != 1, s=Str(s, "^", f[1,2]));
▲ if (f[i, 2] != 1, s1 = Str(s1, "^", f[i, 2]));
};
n=0;while(n++<21, printf("%2s: %s\n",n,fnice(n)))
</syntaxhighlight>
=={{header|Pascal}}==
|