fork download
  1. #! /usr/bin/env perl6
  2.  
  3. my &postfix:<p!> = {[lcm] 1..$_}
  4.  
  5. say 1p!; # 1
  6. say 2p!; # 2
  7. say 3p!; # 6
  8. say 4p!; # 12
  9. say 5p!; # 60
  10. say 6p!; # 60
  11. say 7p!; # 420
Success #stdin #stdout 2.36s 197632KB
stdin
Standard input is empty
stdout
1
2
6
12
60
60
420