Goth and Gore Gifts
Shop right now or else!
Sell your soul
Believeth in me an hath everlasting life
Evil gear
Christmas is almost here
Till death do us part
Axels New Music releases

here are some of the best and useful php scripts and snippets to help in your projects. Php displayed below. Use the search for specific script lookups. Click the category links to view scripts in Javascript and cgi. To add your own script click the link and add your useful script example.

generate a prime number with this online html
prime number generator java script
javascript-prime-number-generator date added Friday, 11.19.21
<!doctype html>
<html lang="en">
<head>
<title>
CMXads prime number gererator</title>
<meta charset="utf-8">
<meta name="robots" content="index">
<meta http-equiv="expires" content="0">
<meta name="keywords" content="free javascripts, javascript examples, prime number generator">
<meta name="description" content="Free javascripts and php scriptsat the webmaster resource place cmxads dot com">



<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! https://cmxads.com -->

<!-- Begin
function calculate(form) {
var num=parseInt(form.number.value);
if (isNaN(num) || num < 0) {
form.result.value=(form.number.value + " is not a valid number!  Try again!");
}
if (num == 1 || num == 2) {
form.result.value=(num + " is prime!");
}
for (var i=2;i<num;i++) {
if (num % i == 0) {
var prime="yes";
form.result.value=(num + " is not prime.  It is divisible by " + i + ".");
break;
}
if (num % i != 0) var prime="no";
}
if (prime == "no") form.result.value=(num + " is prime!");

// End -->
</SCRIPT>
</HEAD>
<body>
<!--  STEP TWO: Copy this code into the BODY of your HTML document  -->

<center>
<form name=form>
<h2>Prime Number Calculator</h2><p>
Please enter a number:<br>
<input type=text name=number size=7>
<input type=button value="Calculate" onClick="calculate(this.form)">
<P>
<input type=text name=result size=45 value="">
</form>
</center>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="https://cmxads.com">The free script place</a></font>
</center><p>

<!-- Script Size:  0.88 KB  -->
</body>
</html>


Add your comment.













No comments yet

Search ScriptsnTips


Php JavaScripts CGI/Perl