mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Update isprime.py
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
__init__ import *
|
.__init__ import *
|
||||||
def isprime(max_a =100):
|
def isprime(max_a =100):
|
||||||
a =random.randint(2,max_a)
|
a =random.randint(2,max_a)
|
||||||
problem =a
|
problem =a
|
||||||
@@ -15,4 +15,4 @@ def isprime(max_a =100):
|
|||||||
solution = True
|
solution = True
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
is_prime = Generator("isprime", 61, "a any positive integer", "True/False", isprime())
|
is_prime = Generator("isprime", 74, "a any positive integer", "True/False", isprime())
|
||||||
|
|||||||
Reference in New Issue
Block a user