Pairs with common factors: Difference between revisions

fix jump anchor problem
(Add Maxima implementation)
(fix jump anchor problem)
Line 701:
 
=={{header|Maxima}}==
{{trans|MathematicaMathematica_/_Wolfram_Language}}
<syntaxhighlight lang="Maxima">/* Define the prime counting function (pcf) */
pcf(n) := n*(n - 1)/2 + 1 - sum(totient(i), i, 1, n);
338

edits