diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2017-06-19 10:50:32 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2017-06-19 10:50:32 -0400 |
commit | 42aa197c75969fdae6757df4ad9ed05e29f0ef48 (patch) | |
tree | a1a177a6e30ea1dab927931ecd98597e2b5b7627 /src-qt5/desktop-utils/lumina-textedit/tests/test.py | |
parent | Commit some minor updates to whitespace and the python syntax file name. (diff) | |
download | lumina-42aa197c75969fdae6757df4ad9ed05e29f0ef48.tar.gz lumina-42aa197c75969fdae6757df4ad9ed05e29f0ef48.tar.bz2 lumina-42aa197c75969fdae6757df4ad9ed05e29f0ef48.zip |
Updated Python syntax rules
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/tests/test.py')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/tests/test.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/tests/test.py b/src-qt5/desktop-utils/lumina-textedit/tests/test.py new file mode 100644 index 00000000..cfac4984 --- /dev/null +++ b/src-qt5/desktop-utils/lumina-textedit/tests/test.py @@ -0,0 +1,17 @@ +import math + +primes = [2] +print(2, end=' ') +count = 1; +for i in range(3, 200000): + for j in primes: + if i % j == 0: + break + elif j > math.sqrt(i): + count += 1 + print(i, end=' ') + if count % 5 == 0: + print() + primes.append(i) + break +print() |