+ 3

What is the correct name for my_math dan next_prime module name in python?

Here is the screenshot for my_math: https://ibb.co/5FM8rTD Credit answered first by r8w9. here is the screenshot for next_prime: https://ibb.co/sCzNrhp I changed next_prime to gmpy but, i'm getting a message: "ImportError: cannot import name gmpy" Here is the screenshot for gmpy: https://ibb.co/Tr5Vh5H

1st Feb 2020, 8:53 AM
Adi Pratama
Adi Pratama - avatar
3 ответов
+ 4
I guess you want math but not my_math ^^
1st Feb 2020, 8:54 AM
r8w9
r8w9 - avatar
+ 4
import math
1st Feb 2020, 9:00 AM
Rei
Rei - avatar
+ 4
Hi, it is a bit confusing. The module math has no next_prime. There is a module gmpy I think. Your Screenshot shows python2. 7.., it is over. Please provide some more information .
1st Feb 2020, 10:09 AM
Oma Falk
Oma Falk - avatar