Skip to main content
change to answer link
Source Link
MD XF
  • 13.9k
  • 4
  • 66
  • 104

M, dylnanM, dylnan

ÆPø“;;“»VOḣ2S⁵++3Ọ;”Pv

This probably wasn't the intended solution.

Try it online!

How it works

ÆP is the built-in primality test.

ø beings a new, niladic chain. Since the previous return value (the result of ÆP) goes out of scope, this prints it implicitly.

“;;“» evaluates to the list of strings ["< Aalst" ""], and V tries to eval them. s tries to split its argument into chunks of length 0, which causes the M interpreter to crash, suppressing further output.

M, dylnan

ÆPø“;;“»VOḣ2S⁵++3Ọ;”Pv

This probably wasn't the intended solution.

Try it online!

How it works

ÆP is the built-in primality test.

ø beings a new, niladic chain. Since the previous return value (the result of ÆP) goes out of scope, this prints it implicitly.

“;;“» evaluates to the list of strings ["< Aalst" ""], and V tries to eval them. s tries to split its argument into chunks of length 0, which causes the M interpreter to crash, suppressing further output.

M, dylnan

ÆPø“;;“»VOḣ2S⁵++3Ọ;”Pv

This probably wasn't the intended solution.

Try it online!

How it works

ÆP is the built-in primality test.

ø beings a new, niladic chain. Since the previous return value (the result of ÆP) goes out of scope, this prints it implicitly.

“;;“» evaluates to the list of strings ["< Aalst" ""], and V tries to eval them. s tries to split its argument into chunks of length 0, which causes the M interpreter to crash, suppressing further output.

Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

M, dylnan

ÆPø“;;“»VOḣ2S⁵++3Ọ;”Pv

This probably wasn't the intended solution.

Try it online!

How it works

ÆP is the built-in primality test.

ø beings a new, niladic chain. Since the previous return value (the result of ÆP) goes out of scope, this prints it implicitly.

“;;“» evaluates to the list of strings ["< Aalst" ""], and V tries to eval them. s tries to split its argument into chunks of length 0, which causes the M interpreter to crash, suppressing further output.