fork download
  1. import sys
  2. print sys.version
  3.  
  4. # Gives:
  5. # 2.7.10 (default, Jul 1 2015, 10:54:53)
  6. # [GCC 4.9.2]
  7.  
  8. f=lambda n,d=1:n%d>0or-~f(n,d+1)
  9.  
  10. for n in range(1,101):
  11. print f(n)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 8
    f=lambda n,d=1:n%d>0or-~f(n,d+1)
                        ^
SyntaxError: invalid token

stdout
Standard output is empty