forked from M-Labs/artiq
examples/coredev_test: use augmented assignments
This commit is contained in:
parent
f6bbcb6789
commit
f8e9f1f7ac
|
@ -21,10 +21,10 @@ class CompilerTest(AutoContext):
|
||||||
while d*d <= x:
|
while d*d <= x:
|
||||||
if x % d == 0:
|
if x % d == 0:
|
||||||
prime = False
|
prime = False
|
||||||
d = d + 1
|
d += 1
|
||||||
if prime:
|
if prime:
|
||||||
self.output(x)
|
self.output(x)
|
||||||
x = x + 1
|
x += 1
|
||||||
self.led.set(0)
|
self.led.set(0)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue