/* Name: B&W's Prime Searching method (Compile with Borland C++ Builder) Copyright: Black&White - june,2006 - freeware, open source Author: eng. Chris Popoff (also known as Black`n`White) Date: 22/06/06 19:03 [i]Not final version - I'm waiting for advices[/i] Description: Search Engine for prime numbers (max to 64-bit integers) To stop the searching engine press 'Ctrl+S' to see the last prime found, then 'Ctrs+C' to stop. Next time, when you start the searching engine change the value at the position marked with ( *** ) from the source code to
the last prime, you have found. NOTE: The number must not be even. Look forward for next releases of this program. At last this project will be transformed to a
benchmarking software.
*/
#include <cstdlib>
#include <iostream>
#include <ctime>
#include <cmath>
#define START 3 // *** Start searching from n ( !!! not even )
#define FIND 100000 // *** Stop after finding n primes
Никой не може да знае всичко, но нека си помогнем един на друг и споделим знанията си с останалите.
Моля помагайте на мен повечко, защото определено се нуждая :Р.
1 посетител чете този скрипт (0 потребители и 1 гост)