aboutsummaryrefslogtreecommitdiff
path: root/problem1.erl
blob: cd0265bea518a711427ba2dbabdbd303909c8e57 (plain)
1
2
3
-module(problem1).
-export([solve/0]).
solve()->lists:sum([X||X<-lists:seq(1,999),X rem 3=:=0 orelse X rem 5=:=0]).