Online Golfscript Tester
Enter your GolfScript program here (max 1024 chars) or
try a sample program
:
Program (
sample
):
# Test on 1,2,3,10 # Expected output 1,3,8,60 ;'1' ~1.{(2$+}{.@+2$%}/+\-,) p'2' ~1.{(2$+}{.@+2$%}/+\-,) p'3' ~1.{(2$+}{.@+2$%}/+\-,) p'10' ~1.{(2$+}{.@+2$%}/+\-,)
-
Run
Copy Link
Program output:
×
The link for this script has been copied to your clipboard.