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=22 ∆p=23 ∆p=34 ∆p=55 ∆p=538 ∆p=3740 ∆p=4169 ∆p=71