Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Delphi > Re: Finding pri...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 9 Topic 1090 of 1135
Post > Topic >>

Re: Finding prime numbers by many computers

by Dr J R Stockton <jrs@[EMAIL PROTECTED] > Nov 19, 2006 at 01:08 PM

In message <ejnrhs$qd9$1@[EMAIL PROTECTED]
>, Sat, 18 Nov 2006
21:44:30, Mikołaj Herda <mikolajherda@[EMAIL PROTECTED]
> writes

>I have written in Delphi a program for finding big prime numbers, like
this
>one: 90019999973. The program uses the "Erastothenes sieve".

FYI.  Via sig line 3, console-mode ERATOST?.PAS will find primes rather
quickly.  They are written in BP7, but ERATOST3 has allowance for
getting a bigger range with Delphi.  Each *.PAS is about 0.5kB.

For machines other than 8088-based, "set of 0..7" should probably
replaced by a set filling two, four, or more bytes, with consequent
minor adjustments.

ERATOST3 could easily be modified to use Int64.

The limit is probably twice the number of bits in the largest array,
unless one uses array of pointer to array ...
-- 
 (c) John Stockton, Surrey, UK.   ?@[EMAIL PROTECTED]
   DOS 3.3, 6.20;
WinXP.
 Web  <URL:http://www.merlyn.demon.co.uk/>
- FAQqish topics, acronyms &
links.
 PAS EXE TXT ZIP via 
<URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
 My DOS  <URL:http://www.merlyn.demon.co.uk/batfiles.htm>
- also
batprogs.htm.
 




 9 Posts in Topic:
Finding prime numbers by many computers
"Mikołaj Herda"  2006-11-18 21:44:30 
Re: Finding prime numbers by many computers
"Terry Russell"  2006-11-19 10:22:08 
Re: Finding prime numbers by many computers
"Mikołaj Herda"  2006-11-19 01:52:42 
Re: Finding prime numbers by many computers
"Terry Russell"  2006-11-19 12:28:42 
Re: Finding prime numbers by many computers
"Terry Russell"  2006-11-20 08:12:16 
Re: Finding prime numbers by many computers
Nicholas Sherlock <N.s  2006-11-19 16:25:46 
Re: Finding prime numbers by many computers
Dr J R Stockton <jrs@[  2006-11-19 13:08:20 
Re: Finding prime numbers by many computers
Dr J R Stockton <jrs@[  2006-11-19 17:44:32 
Re: Finding prime numbers by many computers
"Mikołaj Herda"  2006-11-19 20:28:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 14:58:49 CDT 2008.