Skip to main content
Commonmark migration
Source Link

##Haskell, 47

Haskell, 47

o m=sum[x|x<-[1..m-1],m`mod`x<1]
f m=(o.o)m==m

Call the f function (for "friend").
Didn't provide a main because nobody else is doing so.

##Haskell, 47

o m=sum[x|x<-[1..m-1],m`mod`x<1]
f m=(o.o)m==m

Call the f function (for "friend").
Didn't provide a main because nobody else is doing so.

Haskell, 47

o m=sum[x|x<-[1..m-1],m`mod`x<1]
f m=(o.o)m==m

Call the f function (for "friend").
Didn't provide a main because nobody else is doing so.

trinithis's suggestion
Source Link
marinus
  • 31.2k
  • 7
  • 71
  • 112

##Haskell, 4947

o m=sum[x|x<-[1..(m-1)]1],m`mod`x<1]
f m=(o.o)m==m

Call the f function (for "friend").
Didn't provide a main because nobody else is doing so.

##Haskell, 49

o m=sum[x|x<-[1..(m-1)],m`mod`x<1]
f m=(o.o)m==m

Call the f function (for "friend").
Didn't provide a main because nobody else is doing so.

##Haskell, 47

o m=sum[x|x<-[1..m-1],m`mod`x<1]
f m=(o.o)m==m

Call the f function (for "friend").
Didn't provide a main because nobody else is doing so.

Source Link
marinus
  • 31.2k
  • 7
  • 71
  • 112

##Haskell, 49

o m=sum[x|x<-[1..(m-1)],m`mod`x<1]
f m=(o.o)m==m

Call the f function (for "friend").
Didn't provide a main because nobody else is doing so.