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