Population count: Difference between revisions

m
m (Updated description and link for Fōrmulæ solution)
Line 2,427:
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>popcount[n_Integer] := IntegerDigits[n, 2] // Total
Print["population count of powers of 3"]
1,111

edits