Skip to main content
added 53 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Haskell (runhaskell), 46 bytes

-8 bytes thanks to BMO.

main=do x<-readFile"a";print$length x`gcd`3 -- 

Try it online!Try it online!

Needs the file name to be a. Apparently GHC needs the file to end with .hs, but runhaskell doesn't care.

Haskell (runhaskell), 46 bytes

-8 bytes thanks to BMO.

main=do x<-readFile"a";print$length x`gcd`3 -- 

Try it online!

Needs the file name to be a. Apparently GHC needs the file to end with .hs, but runhaskell doesn't care.

Haskell (runhaskell), 46 bytes

-8 bytes thanks to BMO.

main=do x<-readFile"a";print$length x`gcd`3 -- 

Try it online!

Needs the file name to be a. Apparently GHC needs the file to end with .hs, but runhaskell doesn't care.

added 122 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Haskell (runhaskell) + -cpp, 5246 bytes

-8 bytes thanks to BMO.

main=do x<-readFile __FILE__;print$lengthreadFile"a";print$length x`gcd`3 -- 

Try it online!Try it online!

Needs the file name to be a. Apparently GHC needs the file to end with .hs, but runhaskell doesn't care.

Haskell + -cpp, 52 bytes

-8 bytes thanks to BMO.

main=do x<-readFile __FILE__;print$length x`gcd`3 -- 

Try it online!

Haskell (runhaskell), 46 bytes

-8 bytes thanks to BMO.

main=do x<-readFile"a";print$length x`gcd`3 -- 

Try it online!

Needs the file name to be a. Apparently GHC needs the file to end with .hs, but runhaskell doesn't care.

deleted 15 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Haskell + -cpp, 5952 bytes

-1 byte8 bytes thanks to BMO.

main=do x<-readFile __FILE__;print$sum$1:[2|length__FILE__;print$length x>118]x`gcd`3 -- 

Try it online!Try it online!

Haskell + -cpp, 59 bytes

-1 byte thanks to BMO.

main=do x<-readFile __FILE__;print$sum$1:[2|length x>118]-- 

Try it online!

Haskell + -cpp, 52 bytes

-8 bytes thanks to BMO.

main=do x<-readFile __FILE__;print$length x`gcd`3 -- 

Try it online!

edited body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89
Loading
deleted 3 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89
Loading
deleted 83 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89
Loading
added 9 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89
Loading
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89
Loading