Population count: Difference between revisions

m
→‎{{header|Erlang}}: Adding label for powers of 3 output
(Fixed D entry according to the changes in the Task description)
m (→‎{{header|Erlang}}: Adding label for powers of 3 output)
Line 185:
 
task() ->
io:format("Powers of 3: ~p~n",[threes(30)]),
io:format("Evil:~p~n",[evil(30)]),
io:format("Odious:~p~n",[odious(30)]).</lang>
{{out}}
<lang erlang>61> population_count:task().
Powers of 3: [1,2,2,4,3,6,6,5,6,8,9,13,10,11,14,15,11,14,14,17,17,20,19,22,16,18,24,30,25,
25]
Evil:[0,3,5,6,9,10,12,15,17,18,20,23,24,27,29,30,33,34,36,39,40,43,45,46,48,
Anonymous user