mersenneforum.org  

Go Back   mersenneforum.org > Other Stuff > Forum Feedback

Reply
 
Thread Tools
Old 2016-03-04, 02:19   #12
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

Quote:
Originally Posted by axn View Post
For numbers smaller than 10000, trial division is an entirely acceptable method of factoring. Are you saying you don't know how to do trial division in PHP?
Our thinking was that we would call an external program to do the work. We never considered using PHP itself. Now we have something new to think about.

Xyzzy is offline   Reply With Quote
Old 2016-03-04, 03:47   #13
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103×113 Posts
Default

is [= beside himself] to see the new razzie up and running. Now go away, or ah shall haff to taunt you a second time.
ewmayer is offline   Reply With Quote
Old 2016-03-04, 06:07   #14
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25·257 Posts
Default

A very ugly start:

Code:


Output:


Xyzzy is offline   Reply With Quote
Old 2016-03-04, 07:12   #15
0PolarBearsHere
 
0PolarBearsHere's Avatar
 
Oct 2015

2·7·19 Posts
Default

Quote:
Originally Posted by bgbeuning View Post
Some threads get very long. If someone points me to a thread with 200 pages
I am not even going to try to find the interesting parts.

What if each thread had a shared posting all pages of the thread displayed.
The originator of the thread could put conclusions in the shared posting.
For some threads, like "strategic double checks" the shared page could
remind people to reserve the exponents they should work on. For the
benchmark thread, the shared post could give the rules for the thread.
Do you mean something like Thread tools -> Print mode -> view all pages

or a thread level sticky post, in the same way that there are forum level sticky threads?
0PolarBearsHere is offline   Reply With Quote
Old 2016-03-04, 12:17   #16
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by bgbeuning View Post
Some threads get very long. If someone points me to a thread with 200 pages
I am not even going to try to find the interesting parts.

What if each thread had a shared posting all pages of the thread displayed.
The originator of the thread could put conclusions in the shared posting.
For some threads, like "strategic double checks" the shared page could
remind people to reserve the exponents they should work on. For the
benchmark thread, the shared post could give the rules for the thread.
did you try changing your setting to 97 per page that takes the PARI command thread down to around 27 pages for example. it's because the default is 11 per page I think so anything can take a lot of pages even the ho-pourri thread is around 30 right now I think at forum default. it's only 4 at 97 per page.
science_man_88 is offline   Reply With Quote
Old 2016-03-04, 13:13   #17
axn
 
axn's Avatar
 
Jun 2003

31·163 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
A very ugly start:
Two comments.
1. Use a string to concatenate the factors directly, instead of dumping into an array.
2. Change the main loop condition to while ($i*$i <= $x). EDIT:- However, with this change, you have to add $x also as a factor (if > 1).

Last fiddled with by axn on 2016-03-04 at 13:14
axn is offline   Reply With Quote
Old 2016-03-05, 02:50   #18
bgbeuning
 
Dec 2014

3·5·17 Posts
Default

Quote:
Originally Posted by 0PolarBearsHere View Post

or a thread level sticky post, in the same way that there are forum level sticky threads?
This sounds like what I was suggesting.

Some text (post) that is displayed at the top of all pages of a thread that can
be filled in by someone (thread originator) to hold text everyone reading the thread
might want to know.
bgbeuning is offline   Reply With Quote
Old 2016-03-05, 03:58   #19
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

22·33·89 Posts
Default

Quote:
Originally Posted by bgbeuning View Post
This sounds like what I was suggesting.

Some text (post) that is displayed at the top of all pages of a thread that can
be filled in by someone (thread originator) to hold text everyone reading the thread
might want to know and to which the supermods may change the title and context to whatever they feel it's funny, whenever they want, and how many times per day they go to the coffee machine to refill their cup.
Fixed that for you.
LaurV is offline   Reply With Quote
Old 2016-03-05, 15:02   #20
bgbeuning
 
Dec 2014

3×5×17 Posts
Thumbs up

Quote:
Originally Posted by LaurV View Post
Fixed that for you.
Much better.
bgbeuning is offline   Reply With Quote
Old 2016-03-10, 18:01   #21
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

Quote:
Originally Posted by axn View Post
1. Use a string to concatenate the factors directly, instead of dumping into an array.
That made things a lot simpler!

We have the code live now.

The only broken part right now, that we know of, is that the post count in private messages is "1". We think this is because we do not have the right "trigger" defined for that template.



Lines 4-6 "fix" the untriggered private message issue. We use silly variable names to avoid collision with variable names that may or may not exist. The speed "hit" appears to be negligible.

Please look for any other broken areas of the forum.

Xyzzy is offline   Reply With Quote
Old 2016-03-10, 18:23   #22
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

202016 Posts
Default

Someday, we would like to format the post count like this:

2 * 33 * 1234

That will require a new approach to our code.

We would also like to substitute "×" for "*". And maybe add commas to parts that are more than three digits.

So:

2 × 33 × 1,234

For now we are happy with the results.

Xyzzy is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Collaboration Requests robert44444uk Prime Gap Searches 2 2017-01-17 07:57
Requests for change... WraithX FactorDB 32 2014-12-18 03:40
Manual Requests tului GPU Computing 15 2014-06-24 06:22
a few simple requests for v5 ixfd64 PrimeNet 44 2010-01-11 20:21
New Year requests masser Sierpinski/Riesel Base 5 22 2007-09-24 21:05

All times are UTC. The time now is 13:34.


Sat Jul 17 13:34:39 UTC 2021 up 50 days, 11:21, 1 user, load averages: 1.64, 1.64, 1.60

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.