numvarutils 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
__init__.py ADDED
@@ -0,0 +1 @@
1
+ from .numvarutils import *
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.1
2
+ Name: numvarutils
3
+ Version: 1.0.0
4
+ Summary: A custom math utilities library with manual loop logic
5
+ Author: Your Name
6
+ Author-email: your.email@example.com
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
@@ -0,0 +1,6 @@
1
+ math_utils/math_utils.py,sha256=c5b1b012b89c820c920f0047e469cec1a39ed961a86a39d66cc9b956fdd7695b
2
+ math_utils/__init__.py,sha256=633017ead4cdc3a08daf7444c29228dd5a818f5fcaf7e0f95447d7ee0124ae80
3
+ math_utils/math_utils-1.0.0.dist-info/METADATA,sha256=bce9db666dc473c0dc853883891db465e98f833a7611cac3b97a684c829c5e43
4
+ math_utils/math_utils-1.0.0.dist-info/RECORD,,
5
+ math_utils/math_utils-1.0.0.dist-info/top_level.txt,sha256=ac535ecebcc7155376edee78051fc270d0f450b31f07b299e262a74d967f4b88
6
+ math_utils/math_utils-1.0.0.dist-info/WHEEL,sha256=263938154a25a0729a409f6625bafb11814bea0845e9583f00f0e46f828710cb
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: custom
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1 @@
1
+ math_utils
numvarutils.py ADDED
@@ -0,0 +1,28 @@
1
+ import math
2
+ def gauss_sum(a, b):
3
+ return (a * (a + 1)) // 2
4
+ def counter(a, b):
5
+ b += 1
6
+ for i in range(0, b):
7
+ yield a
8
+ a += 1
9
+ def countdown(a, b):
10
+ b += 1
11
+ for i in range(0, b):
12
+ yield a
13
+ a -= 1
14
+ def isprime(a):
15
+ if a <= 1:
16
+ print("not prime")
17
+ return ""
18
+
19
+ b = 2
20
+ while True:
21
+ if a == b:
22
+ print("prime")
23
+ break
24
+ elif (a / b) == math.floor(a / b):
25
+ print("not prime")
26
+ break
27
+ b += 1
28
+ return ""