skip to main
|
skip to sidebar
lair of the dustbunny
Saturday, November 15, 2008
99 problems - python - 33
Determine whether two positive integer numbers are coprime. Two numbers are coprime if their greatest common divisor equals 1.
Using gcd as defined in the previous problem:
def coprime(m,n):
return gcd(m,n) == 1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2010
(8)
►
July
(3)
►
February
(3)
►
January
(2)
►
2009
(24)
►
November
(1)
►
October
(1)
►
July
(3)
►
May
(1)
►
April
(2)
►
March
(4)
►
February
(3)
►
January
(9)
▼
2008
(85)
►
December
(14)
▼
November
(34)
99 problems - python - 49
99 problems - python - 48
99 problems - python - 46
100 Pushups: week 6 (8th try)
Pragmatic Thinking and Learning
99 problems - python - 41
99 problems - python - 40
99 problems - python - 39
99 problems - python - 37
99 problems - python - 36
99 problems - python - 35
99 problems - python - 34
emacs python mode from scratch: stage 12 - bicycle...
99 problems - python - 33
99 problems - python - 32
emacs python mode from scratch: stage 11 - skeleton
99 problems - python - 31
99 problems - python - 28
99 problems - python - 27
99 problems - python - 26
99 problems - python - 25
99 problems - python - 24
emacs python mode from scratch: stage 10 - pychecker
99 problems - python - 23
99 problems - python - 22
99 problems - python - 21
99 problems - python - 20
99 problems - python - 19
99 problems - python - 18
99 problems - python - 17
99 problems - python - 16
99 problems - python - 15
99 problems - python - 14
real age
►
October
(18)
►
September
(4)
►
August
(4)
►
July
(9)
►
April
(2)
►
2007
(8)
►
August
(3)
►
July
(5)
About Me
dustbunny
View my complete profile
Labels
python
(80)
99 problems
(48)
emacs
(22)
emacslisp
(20)
fitness
(10)
functional programming
(9)
oscon
(9)
pushups
(9)
higher order perl
(8)
hop
(8)
perl
(8)
programming languages
(8)
smalltalk
(6)
haskell
(5)
oscon08
(5)
squeak
(5)
django
(2)
oscon09
(2)
programming puzzles
(2)
algorithms
(1)
babylon 5
(1)
brain games
(1)
compilation
(1)
compression
(1)
cs
(1)
damian conway
(1)
data structures
(1)
firefox
(1)
focus
(1)
git
(1)
intelligence
(1)
iq
(1)
larry wall
(1)
learning
(1)
life extension
(1)
lisp
(1)
math
(1)
meditation
(1)
mindfulness
(1)
programming polyglot
(1)
puzzle
(1)
rationality
(1)
running
(1)
seaside
(1)
source code
(1)
sushi
(1)
tutorial
(1)
wii
(1)
No comments:
Post a Comment