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

Java vs. brainfuck vs. Python.

Name: Anonymous 2007-04-24 18:38 ID:oUkHXcjW

http://en.wikipedia.org/wiki/Brainfuck
http://en.wikipedia.org/wiki/Java
http://en.wikipedia.org/wiki/Python_%28programming_language%29

Now that we're all up to speed, discuss the pros and cons of each language, as well as which you believe to be the superior language.

Name: Anonymous 2007-05-01 21:47 ID:eDA9mLes

>>43
The Python version could be optimized a bit with for/else.

def Primes(max):
        a = []
        for i in xrange(1, max + 1):
                for j in xrange(2, int(sqrt(i)) + 1):
                        if not i % j:
                                break
                else:
                        a += [i]
        return a

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