View Single Post
Old 2017-04-20, 15:31   #5
a1call's Avatar
"Rashid Naimi"
Oct 2015
Remote to Here/There

2·52·43 Posts

Another challenging and interesting utilization of the next-prime would be to find prime gaps of some given minimum size, or their first occurrences.

You can also try asking them to find p such that
n! + p is prime for a given n. Leave it up to them to figure out they can start by next-prime(n+1) since anything between 1 and n would give a composite.

Last fiddled with by a1call on 2017-04-20 at 15:51
a1call is offline   Reply With Quote