From f6bbcb678971b13ca34326374d5f14d7dabedac4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 18 Aug 2014 23:16:02 +0800 Subject: [PATCH] examples/coredev_test: use booleans --- examples/coredev_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/coredev_test.py b/examples/coredev_test.py index e4f09847a..11f6c7ed0 100644 --- a/examples/coredev_test.py +++ b/examples/coredev_test.py @@ -17,12 +17,12 @@ class CompilerTest(AutoContext): m = self.get_max() while x < m: d = 2 - prime = 1 + prime = True while d*d <= x: if x % d == 0: - prime = 0 + prime = False d = d + 1 - if prime == 1: + if prime: self.output(x) x = x + 1 self.led.set(0)