Scientific Notebook does not have a built-in function to generate large primes, but the underlying computational system does. The following is an example of how to define Scientific Notebook functions that correspond to existing functions in the underlying computational system. (See the Appendix for a general discussion of how to access such functions.) In this example, p(x)is defined as the Scientific Notebook name for the Maple function, nextprime(x), which generates the next larger prime.
To define p(x) as the next prime function
Test the function using Evaluate.
Evaluate
p(4) = 5
p(500) = 503
p(8298) = 8311
p273849728952758923
= 273 84972 89527 58939