Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

WEEKLY CHALLENGE

Name: Anonymous 2010-08-25 18:17

/prog/'s weekly challenge

Write a solution to Project Euler's first problem (http://projecteuler.net/index.php?section=problems&id=1)
using the befunge93 language (http://catseye.tc/projects/befunge93/doc/befunge93.html).

Name: 9 2010-08-26 5:55

>>10-14
I'm the only one who won without cheating so far and all you people care about is non-Befunge solutions and shitposts?

Actually, here's some more esolangs, this is sorta fun.

Golfscript:
1000,.3%\5%|{+}*

J:
+/t#~+./0=3 5|,:~t=.i.1000

FALSE:
0a:
0s:[s;3+ 999>~][s;3+s: a;s;+a:]#
0s:[s;5+ 999>~][s;5+s: a;s;+a:]#
0s:[s;15+999>~][s;15+s:a;s;-a:]#a;.


Codan (haven't tested this, same pseudocode though):
0 ← 0
1 ← 0
«
    2 ← 3
    Α ← 1 Β ← 2 + → α
    Α ← 0 Β ← 1 + → α
    β < 1000
»
1 ← 0
«
    2 ← 5
    Α ← 1 Β ← 2 + → α
    Α ← 0 Β ← 1 + → α
    β < 1000
»
1 ← 0
«
    2 ← 15
    Α ← 1 Β ← 2 + → α
    Α ← 0 Β ← 1 - → Α
    β < 1000
»
α → Λ

Name: Anonymous 2010-08-26 13:55

>>15
I'm the only one who won without cheating
Yeah, it's weird how everyone didn't jump on such a tough challenge, right?  Congratulations.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List