First 100 Prime Numbers
How do I make an first 100 prime numbers?
What is a first 100 prime numbers? How do you make a first 100 prime numbers? This script and codes were developed by Mnicpt on 30 July 2022, Saturday.
First 100 Prime Numbers - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>First 100 Prime Numbers</title>
</head>
<body> <div class="console"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
First 100 Prime Numbers - Script Codes JS Codes
var primes = new Array(), primeIndex = 1, num, i, $console = $('.console'), prime = function(num) { var j; for(j = 2; j < num; j++) { if(num % j === 0) { return false; } } return true; };
primes[0] = 2;
// iterate until we have 100 prime numbers
for(i = 1; primes.length !== 100; i++) { num = i + 2; if(prime(num)) { primes[primeIndex++] = num; }
}
$console.append(primes.toString());
Developer | Mnicpt |
Username | mnicpt |
Uploaded | July 30, 2022 |
Rating | 3 |
Size | 1,615 Kb |
Views | 48,576 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Angular Calculator | 3,616 Kb |
Plain JavaScript Calculator | 3,600 Kb |
Trinary Tree | 2,282 Kb |
Fading Divider | 1,728 Kb |
A Pen by mnicpt | 3,851 Kb |
Graph Paper Background | 2,517 Kb |
Simple Grid | 4,606 Kb |
Model View Sync | 1,733 Kb |
SerializedAsyncQueue | 2,800 Kb |
JavaScript Aspect | 1,648 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Pictos font library from CodePen | Jstam | 3,790 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 Kb |
Another brick in the wall | Fivera | 1,955 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
Horizontal scroll fixed element | HerrSerker | 0 Kb |
Loading animation - freedom purchase | Rocbear | 2,567 Kb |
Preloader | Rikki_Sixx | 2,815 Kb |
CardMove | Thompsonemerson | 3,699 Kb |
Haml Calendar | Katydecorah | 5,643 Kb |
Perforated foil | 0x04 | 2,617 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!