Skip to main content
Commonmark migration
Source Link

#2014 - Pyth

2014 - Pyth

#2014 - Pyth

2014 - Pyth

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Pyth is a golfing language by @isaacg@isaacg which compiles down to Python. It's notable for being procedural and for using prefix notation. Pyth first appeared around June 2014.

Pyth is a golfing language by @isaacg which compiles down to Python. It's notable for being procedural and for using prefix notation. Pyth first appeared around June 2014.

Pyth is a golfing language by @isaacg which compiles down to Python. It's notable for being procedural and for using prefix notation. Pyth first appeared around June 2014.

deleted 10 characters in body
Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292
=GvwW%GQAGQ=GvwWQAGQ,Q%GQ)QG

This program uses the Euclidean algorithm, and takes two numbers separated by a newline. Try it onlineTry it online.

Q = eval(input())     #
G = eval(input())     #    =Gvw
while G % Q != 0:         #        W%GQWQ
  G, Q = Q, G % Q     #            AGQ,Q%GQ)
print(QG)              #                     QG
=GvwW%GQAGQ,Q%GQ)Q

This program uses the Euclidean algorithm, and takes two numbers separated by a newline. Try it online.

Q = eval(input())     #
G = eval(input())     #    =Gvw
while G % Q != 0:     #        W%GQ
  G, Q = Q, G % Q     #            AGQ,Q%GQ)
print(Q)              #                     Q
=GvwWQAGQ,Q%GQ)G

This program uses the Euclidean algorithm, and takes two numbers separated by a newline. Try it online.

Q = eval(input())     #
G = eval(input())     #    =Gvw
while Q != 0:         #        WQ
  G, Q = Q, G % Q     #          AGQ,Q%GQ)
print(G)              #                   G
added 19 characters in body
Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292
Loading
added 95 characters in body
Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292
Loading
added 1179 characters in body
Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292
Loading
Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292
Loading