Hi I have this code that I already have to find the next prime number . It works only if I put the number on the code. However Im trying to find a way to have a range of number so that the user can pick from . Here is the code :
https://sagecell.sagemath.org/?z=eJxVjcEKgzAQRO_5ioFSolSKehTsseceepdAV7ugUTYJbf--idKCl2Vndt6ODRNaZM4M1LFdgs_0bSTjCGQ9CTw5D47rEMUFdQOdq4NNVFWX6kE92HWL8ERZdPNGAf0s4AhBjB0oq4vfAeAeKYYjOEfbotxsQMgHsbia0ZH6y7sEUmptQ5onVOr15JH2penTSm7f9vkYsz6pApodPnMQWHp7rPxZqy8wc056&lang=sage