mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2013-05-31, 19:03   #34
J.F.
 
J.F.'s Avatar
 
Jun 2008

23×32 Posts
Default

Oh hi, Jan (Feitsma) here. It seems this thread was temporary hi-jacked, sorry Paulunderwood... maybe any further such discussions should be moved to Charles' thread called 'Pseudoprimes'?

Yes a paper is now on the agenda, I got persuaded. Followup is planned for later this summer. WraithX and Jeff are contributing too, covering the verification efforts.
As Danaj noted, 64-bit is a rather nice bound mainly because of assembly optimizations.
Henryzz: a ballpark estimate for amount of work spent would be 70 CPU years (by me at least, in 2008, not sure about WraithX/Jeff).
J.F. is offline   Reply With Quote
Old 2013-05-31, 19:13   #35
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Quote:
Originally Posted by J.F. View Post
Oh hi, Jan (Feitsma) here. It seems this thread was temporary hi-jacked, sorry Paulunderwood... maybe any further such discussions should be moved to Charles' thread called 'Pseudoprimes'?
It doesn't bother me. It is normal behavior around here

Quote:
Originally Posted by J.F. View Post
Yes a paper is now on the agenda, I got persuaded. Followup is planned for later this summer. WraithX and Jeff are contributing too, covering the verification efforts.
As Danaj noted, 64-bit is a rather nice bound mainly because of assembly optimizations.
Henryzz: a ballpark estimate for amount of work spent would be 70 CPU years (by me at least, in 2008, not sure about WraithX/Jeff).
Your paper is something to look forward to and, wow, that was a lot of cycles.
paulunderwood is online now   Reply With Quote
Old 2013-05-31, 21:37   #36
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by J.F. View Post
Yes a paper is now on the agenda, I got persuaded.
Excellent, please keep us informed! I look forward to reading it.
CRGreathouse is offline   Reply With Quote
Old 2013-06-01, 22:41   #37
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

10110111110002 Posts
Default

Quote:
Originally Posted by J.F. View Post
Henryzz: a ballpark estimate for amount of work spent would be 70 CPU years (by me at least, in 2008, not sure about WraithX/Jeff).
Doesn't sound insane. A boinc project could take it several bits further if needed.
henryzz is offline   Reply With Quote
Old 2013-06-01, 23:15   #38
jcrombie
 
jcrombie's Avatar
 
"Jonathan"
Jul 2010
In a tangled web...

3278 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
I have added a trial division option. The results field now blanks if there is a change to the inputs. The time taken is also displayed. The fields have been enlarged -- I hope this is okay for smart phone displays

Version 0.5:
tests redone for version 0.5:

Iphone 5, Safari
p201 693 ms 1062 ms with second test checked
p1001 69877 ms 106094 ms with second test checked

less dusty now Blackberry Playbook
p201 2257 ms 3045 ms with second test checked
p1001 self-aborts as before

for the smart phone, all fields are visible, no complaints
jcrombie is offline   Reply With Quote
Old 2013-06-02, 00:46   #39
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Thanks for the timings.

I am going to look into going from 15 bit array arithmetic to 24 bits again. It would slash running times greatly...
paulunderwood is online now   Reply With Quote
Old 2013-06-02, 01:59   #40
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17·251 Posts
Default

Version 0.5:
40767ms in Chrome on Galaxy S3
84025ms (!) in Dolphin on Galaxy S3

12650ms in Chrome on i5-750/Windows 7

Slower than the last one I tried, and oddly enough, Dolphin now runs twice as slow as Chrome on my Android.
Mini-Geek is offline   Reply With Quote
Old 2013-06-02, 02:22   #41
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Thanks again, Mini-Geek, for the timings. I cannot think of any reason why the latest code is any slower than versions 0.3 and 0.4. Perhaps your S3 was doing something else in the background.

After some research on the net, I have found a trick which is way faster than the standard "Math.floor()" function. I shall use "~~(a/b)". Expect a 4 times speed up for the 24 bit version after I coded it up

Last fiddled with by paulunderwood on 2013-06-02 at 02:26
paulunderwood is online now   Reply With Quote
Old 2013-06-02, 06:46   #42
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

373910 Posts
Default

I managed to code up a 24 bit version using the "~~(a/b)" trick as opposed to the very sluggish Math.floor() function. It worked with Internet Explorer 8 on 32-bit XP running on VirtualBox, given the previously linked hax from Microsoft; For p1001 it took 468414ms. I got some more realistic timings for other browsers with native Linux on this 2.7Ghz core2 box:

Epiphany 2.30.6:
28168ms -- Version 0.5
18121ms -- Version 0.6

FireFox 21.0:
8197ms -- version 0.5
3757ms -- version 0.6

Version 0.6:
Attached Files
File Type: zip paulsprprimepage.html.zip (7.9 KB, 104 views)

Last fiddled with by paulunderwood on 2013-06-02 at 06:54
paulunderwood is online now   Reply With Quote
Old 2013-06-02, 12:34   #43
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

10AB16 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Thanks again, Mini-Geek, for the timings. I cannot think of any reason why the latest code is any slower than versions 0.3 and 0.4. Perhaps your S3 was doing something else in the background.
It's also slower on my PC, by a comparable fraction. Is it faster for you?
Mini-Geek is offline   Reply With Quote
Old 2013-06-02, 15:16   #44
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1110100110112 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
It's also slower on my PC, by a comparable fraction. Is it faster for you?
No. Versions 0.3, 0.4 and 0.5 all use the same functions, as far as I can tell. Only new options were introduced -- 2-prp and trial division (resp.). They all have the same running times here (without options checked) for p1001, on both Epiphany and FireFox; and p201 in IE8 (VirtualBox). I saw a doubling in speed for IE8 and Version 0.6

Last fiddled with by paulunderwood on 2013-06-02 at 15:18
paulunderwood is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
PhD student needed for Paul Zimmermann's group jasonp Operation Kibibit 1 2017-09-07 19:54
Searching for Paul Underwood diep Lounge 3 2009-12-18 12:25
New data page kar_bon Riesel Prime Search 144 2008-10-21 10:27
Question about your page OmbooHankvald 15k Search 2 2005-08-02 14:53
Paul Leyland's Mersenne factors table gone? ixfd64 Lounge 2 2004-02-18 09:42

All times are UTC. The time now is 03:12.


Sat Jul 17 03:12:15 UTC 2021 up 50 days, 59 mins, 1 user, load averages: 1.63, 1.43, 1.35

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.