Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Babbage-problem/Erlang/babbage-problem.erl
Normal file
11
Task/Babbage-problem/Erlang/babbage-problem.erl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-module(solution1).
|
||||
-export([main/0]).
|
||||
babbage(N,E) when N*N rem 1000000 == 269696 ->
|
||||
io:fwrite("~p",[N]);
|
||||
babbage(N,E) ->
|
||||
case E of
|
||||
4 -> babbage(N+2,6);
|
||||
6 -> babbage(N+8,4)
|
||||
end.
|
||||
main()->
|
||||
babbage(4,4).
|
||||
Loading…
Add table
Add a link
Reference in a new issue