Skip to main content
added 189 characters in body
Source Link
Justin
  • 21.4k
  • 9
  • 68
  • 117

Befunge 93, 44 bytes

&:v>0.@ @.-1< 03<_v#%p03+1:g03::_^#`g 

This works by trial division.

There's a hidden unprintable character between the v> on the first line; it's the character whose value is 2. The base64 of the file is as follows:

Jjp2Aj4wLkAgICAgICAgQC4tMTwKMDM8X3YjJXAwMysxOmcwMzo6X14jYGc= 

Opening it as hex in Sublime Text looks like this (newline confusion, though):

263a 7602 3e30 2e40 2020 2020 2020 2040 2e2d 313c 0d0a 3033 3c5f 7623 2570 3033 2b31 3a67 3033 3a3a 5f5e 2360 670d 0a 

Try this out here.

Befunge 93, 44 bytes

&:v>0.@ @.-1< 03<_v#%p03+1:g03::_^#`g 

This works by trial division.

There's a hidden unprintable character between the v> on the first line; it's the character whose value is 2. The base64 of the file is as follows:

Jjp2Aj4wLkAgICAgICAgQC4tMTwKMDM8X3YjJXAwMysxOmcwMzo6X14jYGc= 

Try this out here.

Befunge 93, 44 bytes

&:v>0.@ @.-1< 03<_v#%p03+1:g03::_^#`g 

This works by trial division.

There's a hidden unprintable character between the v> on the first line; it's the character whose value is 2. The base64 of the file is as follows:

Jjp2Aj4wLkAgICAgICAgQC4tMTwKMDM8X3YjJXAwMysxOmcwMzo6X14jYGc= 

Opening it as hex in Sublime Text looks like this (newline confusion, though):

263a 7602 3e30 2e40 2020 2020 2020 2040 2e2d 313c 0d0a 3033 3c5f 7623 2570 3033 2b31 3a67 3033 3a3a 5f5e 2360 670d 0a 

Try this out here.

Source Link
Justin
  • 21.4k
  • 9
  • 68
  • 117

Befunge 93, 44 bytes

&:v>0.@ @.-1< 03<_v#%p03+1:g03::_^#`g 

This works by trial division.

There's a hidden unprintable character between the v> on the first line; it's the character whose value is 2. The base64 of the file is as follows:

Jjp2Aj4wLkAgICAgICAgQC4tMTwKMDM8X3YjJXAwMysxOmcwMzo6X14jYGc= 

Try this out here.