Mersenne: RE: Mersenne Digest V1 #544

1999-04-14 Thread Scott Kurowski

Hi all,

Please cc my direct address for any replies.  I receive only the list
digests.

The Entropia.com team has expanded to five!  We have added a new
PrimeNet support  operations engineer, Brad Bernard.  Brad will soon
be picking up and answering traffic sent to [EMAIL PROTECTED],
watching over the PrimeNet server, and helping George.  I've known
Brad for 6 years, and know he'll continue making the job look much
easier than it really is.



[Shane:]
 There are a number of less intrusive options availible other
 than a message box which would REQUIRE user interaction.
 [...]
[Aaron:]
 Well, these are all good thoughts, let's see what George
 and Scott can do...they've already done so much as it is.

Shane's suggestions are closer to what we will probably do.  PrimeNet
4.0 already supports client update notification, but we have yet to
decide how to best use it.



[Brian:]
 Interesting. rpcnet.dll from the v18 distribution is much
 smaller than that in the v17 distribution.

 Should be safe enough to keep the v17 distribution copy.

Yes, but it the v17 version uses a proxy running on the old PrimeNet
3.1 server's box.  I'd rather everyone use HTTP if possible, or at
least use the updated v18 version dated 4/12/1999.


 Actually my systems are all using either http or the special
 rpcnet.dll used to connect to the PrimeNet Proxy server, so I just
 don't know how badly the v18 rpcnet.dll is broken.

The v18 program defaults to HTTP when you first install it, so new
users should not run into it.  The PrimeNet FAQ page also describes
how to handle the RPC run-time library crash situation.

I've updated the posted v18.1 zips with a new RpcNet.dll.  I couldn't
get it to crash.  If you have an environment that can test this,
please do so and tell me how it went.



 Floris Looyesteyn ( who has to retest 2 7mil primes which
 were at 70%)

Floris, tell us which exponents those were and we'll credit your
account for the lost work.



[Martin:]
 Did someone else notice that the top producers lists on
 mersenne.org and entropia.com are inconsistent? Apparently,
 on mersenne.org the exponents that were affected by the
 V17-bug are no longer taken into account.
 Shouldn't this be dealt with consistently?

The GIMPS list and PrimeNet lists have never really been consistent.
They track different objectives, though I suppose we could be more
clear about calling attention to that.

GIMPS specifically reflects work accomplished toward a research
objective - completing valid LL primality test results.  You lose time
to invalid results, factoring, earlier LL tests for numbers
subsequently factored, etc.

In contrast, PrimeNet simply tracks how much CPU time you gave in good
faith to GIMPS as part of its virtual machine.  Primality tests,
factoring, double-checking, and even time lost to errors count.  You
give the time to the networked project, and PrimeNet counts it.



Does anyone have AOL 4.0 working with Prime95 on a dialup account?
The problem I'm trying to solve for the FAQ page is how to configure
AOL to be the default dialup service so Prime95 checks AOL for a
connection, not Windows DUN.  If Prime95's 'Use a dialup network
connection' box is checked, the symptom is Prime95 says there's no
dialup connection even when AOL's connection is open.  Another symptom
is Prime95 causes the Windows dialup connection box to pop up instead
of AOL if the checkbox is off.  One person told me he solved this by
configuring the AOL hotkeys, though I have no idea what this meant.

Best regards,
scott


Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm



Re: Mersenne: Single precision in consoles

1999-04-14 Thread Peter Doherty

I see your point, and I'm aware it can be done.  I didn't mean any kind of
personal attack on you for your idea.  Creative thinking is one of the most
important things in my opinion.  I just think such important and
interesting things as GIMPS shouldn't be spread over to consoles.  GIMPS is
working incredibly well and so many numbers are getting crunched so quickly
by the mass effort.  If we all remain patient, we will soon have another
mersenne prime on the list.

At 13:59 04/13/1999 +, you wrote:
Hello,

I know many have complained about my console idea (which, as I said, was not
very realistic at this point), because they only have single precision. I
just want you to consider that George once had an _integer_ version of
Prime95
running, but it was roughly 7 times slower (if I remember right) that the
FPU version. (The factoring code for 486es and clones _is_ integer, BTW.)

However, there is strength in numbers. A _lot_ of people have consoles. So
even if they aren't as much worth as a P3/Mhz or whatever, they still
_help_, much more than 486es.

/* Steinar */

Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm
 



Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm



Re: Mersenne: Top Producers Reports

1999-04-14 Thread George Woltman

Hi all,

At 11:23 AM 4/4/99 -0700, Terry S. Arnold wrote:
The top producers report over at Georges site appears to have wiped out all 
of the V17 work (and maybe some more) while the equivalent report on 
Scott's site has not. Could we at least be consistent.

I just loaded the latest Top Producers page and v17 work should be
recredited.

As Scott noted, the Primenet server's page and mersenne.Org's
page track two different things.  Historically, mersenne.org
does not track factoring work (I don't have the data to do so),
decredits LL tests that were later found bad or a factor was found.
It also applies the timings of the latest prime95 to produce its
results.

However, I understand that some people use that page as a motivator,
and the v17 bug was my fault, so I've changed my programs to
include those bad results.  I thought about "phasing out" the
credit for these v17 results (just so I don't have to track them),
but did not reach a definitive decision.

Note that when the next version of prime95 comes out, everyone
will take a hit as the new faster timings are applied.  Use the
page as a rough indicator of where you stand relative to other
GIMPS members.  Don't take it as an overly accurate accounting
of every CPU cycle you have invested.

Best regards,
George 


Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm



Re: Mersenne: GUI for Linux

1999-04-14 Thread BJ . Beesley

Forcing Linux users to run X just to be able to admin a program is in my
opinion quite silly.

Agreed

What I really like about mprime is that it makes almost no demands on what
other crud is installed on the machine already.

True enough

If you really want to gui for Linux, do it the Linux way and write one
yourself instead of asking others to do it.

- or simply have a console window come up  execute "mprime -d" when you start X?

I've no objection to anyone writing a fancy front-end for mprime, but I hope the 
existing "minimalist" version will be retained ... if only because the great 
beauties of linux are its incredible stability and the minimal configuration needed 
to run it, the first is reduced and the second vanishes as soon as you need to run 
X.

Regards
Brian Beesley

Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm



Re: Mersenne: GUI for Linux

1999-04-14 Thread Pierre Abbat

On Wed, 14 Apr 1999, Guillermo Ballester Valor wrote:
 Hi to all:
 
 Henrik Olsen wrote:
  
  On Tue, 13 Apr 1999, Ernst W. Mayer wrote:
   A bit off-topic, but I think there are enough Linux users out there
   to justify it. Check out
  
 You are right, I think. I am a new user of linux, then a new mprime
 user. I run both prime95/mprime in Win95/linux O.S. using the same
 directory and files (except the executable file, of course). 99% of
 iterations are made by mprime, 1% by prime95. Actually, I only use
 prime95 like an administartion tool to configure the *.ini files. 
 
 I know I can do that simply editing the files... but I like GUI in
 prime95.

I wrote a small tcl program to keep the last 25 lines of mprime's output in a
file. I am planning to write a tcl/tk program to look at that file and tell me
when mprime wants to connect and, having connected, when it's finished so that
I can disconnect. But I don't know how to change the parameters of a running
mprime. Can I open mprime bidirectionally from the tcl program and pass it
commands? Or could mprime be modified to listen to some port, and then I could
run a client to get at its menu? I run it as root, from rc.local, before any
consoles are gotty.

phma

Unsubscribe  list info -- http://www.scruz.net/~luke/signup.htm



Mersenne: factoring and LL-testing with perl

1999-04-14 Thread Robert Friberg

Hi all,

I haven't run prime95 the past year and I'm still among the 
top ten producers. Well, last time I checked I was.
Didn't think I would last that long up there. ;-)

I was goofing around with perl today and recalled a cool
way of factoring/primality checking using patternmatching. 
I also tried out the bigint module and did some LL-testing,
verifying all known MP's from M2281 and down.

I thought I'd share some code, very simple but perhaps
interesting for some.

Here's an LL-test of M13. Change the assignment on the
first row to test another number, remember it has
to be prime. M13 is the biggest number this code can handle.


   # LL-test 1
   $P = 13;
   $MP = (1  $P) - 1;
   $U = 4;

   for ($i = 1; $i  $P - 1; $i++)
   {
  $U = ($U * $U - 2) % $MP;
   }

   if ($U == 0) { print "M$P is prime\n";   }
   else { print "M$P is composite\n" }

Perl is nice, this particular code is very similar to C,
in case you haven't noticed. 

Next step is incorporating the bigint module which is a part of the
standard perl distribution:

   # LL-test 2
   use Math::BigInt;

   for $P (3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61) {

  $MP = Math::BigInt-new(2);
  $MP = ($MP ** $P) - 1;
  $U = Math::BigInt-new(4);

  for ($i = Math::BigInt-new(1); $i-bcmp($P - 1); $i = $i + 1)
  {
 $U = ($U * $U - 2) % $MP;
 print "\r$i\t($P)\t";
  }

  $not = $U == 0 ? '' : ' not';
  print "M$P is$not prime\n";
   }

Besides support for big numbers the test is now wrapped up in a
loop that tests prime exponents = 61 and  2
Also, progress printing in the innermost loop has been added.


Now to the patternmatching, this is fun. The number to factor
is represented as a string of characters, eg:

'o'   is 5

The concept is to find a sequence of 2 or more characters that
is repeated 2 or more times and matches the whole sequence.   
The pattern for this is:

/^(oo+)\1+$/

Short explanation:

   o matches a literal o

   + means 1 or more, thus oo+ matches 2 or more o's
   Quantifiers in perl are greedy, meaning they match
   as much as possible. 

   The parens are for catching parts of the matched string
   to special variables. The first pair goes to $1, the second
   to $2, etc.

   \1 is a backreference, meaning the exakt sequence that was 
   matched by the first pair of parens.

   ^ means match at the beginning

   $ means match at the end

   The forward slashes are perls regex-operator.
   

Now some code:

while ($num = STDIN)
{
   chomp $num;  # ditch the newline char 
   last if $num == 0;   # like C's break
   $seq = 'o' x $num;   # make a sequence of $num o's

   # =~ is perls match-operator
   print "$num is prime\n" unless $seq =~ /^(oo+)\1+$/;

}

When the pattern matches we have a factor represented by
the length of $1, the dividend of the number being
tested and it's smallest prime factor. We can alter the
regex slightly to get the smallest prime factor into $1
instead. Quantifiers are greedy by default in perl but
can be forced to the opposite by appending a ?

 /^(oo+?)\1+$/

Imagine we are testing the number 30. The new regex will
match the 2 first o's with (oo+) and then repeat the sequence
15 times to exactly match the string. With the first regex
(oo+) would match all 30 o's before the engine continues,
only to fail immediately. It would the back up and pop off
1 char, matching 29 o's and try again. This proceeds until
until 15 is reached and the total expression matches. This
process is called backtracking. We need this knowledge for 
the next step.

If we were to completely factorize our original number (30)
we would probably want do something like this:

   while (match) {
  print the found factor, $1
  replace the number, $N, with the $N / $1
   }
   print the remaining prime factor
   
What's interesting in our case is that the number is 
represented by the length of a sequence, so how do
we say N = N / F in an easy way? The obvious

   $N = 'o' x (length($N) / length($1));

works fine, thats what I would have come up with. The
Perl Cookbook demonstrates a method using more pattern-
matching and substitution. The idea is to replace each
repeated sequence with a single o. With our example of
30 each pair of o's becomes a single o leaving 15. The
next step substitutes each triplet with a single o 
leaving 5. In perl:

$N =~ s/$1/o/g;

This means search for $1 in $N and replace with o
The g is for global meaning all occurences.


# almost exactly from the book...
# shift is a function that pulls the next argument from the 
# commandline.

for ($N = ('o' x shift); $N =~ /^(oo+?)\1+$/; $N =~ s/$1/o/g;) {
   print length($1), " ";
}
print length($N);


Robert
~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^

   Robert Friberg
   Delphi, C, Perl developer for hire
   Boras, Sweden

~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^