/* probableprime.js (utilisé dans probableprime.html, avec probableprime.java) */ function prpr(s) { document.frm.result.value = s; } function prpr2(s) { document.frm.nombre.value = s; } function nouveaupremier(x) { var nbchif=document.frm.nb.value; var bchif=Math.floor((nbchif*10)/3); document.frm.nombre.value = "Recherche en cours"; document.frm.result.value = ""; document.Pr.genprobprime(bchif, x); } function efface() { document.frm.result.value = ""; document.frm.nombre.value = "1"; document.frm.nb.value = "1"; } function cherche() { var st =document.frm.nombre.value; document.frm.result.value = "Recherche en cours"; document.Pr.probprime(st); }