aboutsummaryrefslogtreecommitdiff
path: root/problem29.erl
blob: ca83f50371da0f421a3c66aa864d48fb6c340c49 (plain)
1
2
3
4
5
6
7
8
9
-module(problem29).
-export([solve/0]).

solve() ->
	length(sets:to_list(sets:from_list(genlist(100)))).

genlist(N) ->
	L = lists:seq(2,N),
	[math:pow(X,Y) || X <- L, Y <- L].