From 7e555f42fe522249de353bb24a67cd9bfe1d94c3 Mon Sep 17 00:00:00 2001 From: - Date: Fri, 16 Oct 2020 16:11:59 +0200 Subject: [PATCH] Adjusted difficulty --- mathgenerator/mathgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mathgenerator/mathgen.py b/mathgenerator/mathgen.py index 0a92142..0eadbc9 100644 --- a/mathgenerator/mathgen.py +++ b/mathgenerator/mathgen.py @@ -216,7 +216,7 @@ def multiplyIntToMatrix22(maxMatrixVal = 10, maxRes = 100): solution = f"[[{a*constant},{b*constant}],[{c*constant},{d*constant}]]" return problem, solution -def primeFactors(minVal=10, maxVal=999): +def primeFactors(minVal=1, maxVal=200): a = random.randint(minVal, maxVal) n = a i = 2