Sunday 30 June 2013

VBScript prime number generator



  This is a really cool HTML application which finds all the prime numbers in a given range. This program is pretty fast for low ranges and may raise the core usage to 100 or 90 percent for very large ranges. So I prevented large ranges from being entered as it caused some errors and caused the computer to crash.
The VBScript used in the program is really simple. The program tries to get a integer number by dividing it with all possible numbers and if does not get an integer the number is confirmed as a prime number. This process is repeated for all the numbers in the given range.
To make the program paste the following code in notepad and save with a .hta extension.

Copyright © 2013 | Prime Calculator - By #XByte

 

0 comments:

Post a Comment