Skip to main content
2 of 2
fix headline for leaderboard
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

GML, 76 bytes

n=argument0;i=n;while~-1{n+=(n mod i<1)*i*(n/i mod 2*2-1)i--}show_message(n)

Information about GML

Timtech
  • 12.6k
  • 2
  • 46
  • 61