Element - ∆p
- Nearest Prime to a Number / Python equivalent of an expression
Description
Get the prime number closest to a given number, get the greater to break ties / return the python equivalent of a mathematical expression - sympy's .pycode() function
Overloads
num
-nearest_prime(a)
str
-sympy.nsimplify(a).pycode()
Examples
1 ∆p
=2
2 ∆p
=2
3 ∆p
=3
4 ∆p
=5
5 ∆p
=5
38 ∆p
=37
40 ∆p
=41
69 ∆p
=71