1. blooper
  2. projecteuler

Commits

blooper  committed ae3a432

Ans for Problem 6 in Erlang

  • Participants
  • Parent commits 9d90e6b
  • Branches default

Comments (0)

Files changed (1)

File Erlang/problem0006_1.erl

View file
+-module(problem0006_1).
+-compile(export_all).
+
+ans() -> lists:sum([ 2*X*Y || X <- lists:seq(1,99), Y <- lists:seq(X+1,100)]).
+