Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (6 sloc) 0.21 kb
-module(multiples).
-export([find_multiples/1]).
find_multiples(0) -> 0;
find_multiples(X) when (X rem 3 =:= 0) or (X rem 5 =:= 0) ->
X + find_multiples(X - 1);
find_multiples(X) -> find_multiples(X - 1).
Jump to Line
Something went wrong with that request. Please try again.