![]() |
|
|
#1 |
|
"Jason Goatcher"
Mar 2005
350710 Posts |
Is it random? And what are all the possible bases for this particular algorithm? I mean the bases that are being used right now, not ones you could potentially add.
All the bases seem to be a power of 2, base 2, 4, 8, 16, 32, have I missed or forgotten some that don't fit this pattern? edit: Oh yeah, also there's post counts where they factor the numbers. Maybe the ones in a weird base are all prime? Last fiddled with by jasong on 2016-11-05 at 23:27 |
|
|
|
|
|
#2 |
|
"Daniel Jackson"
May 2011
14285714285714285714
3×13×17 Posts |
I think it depends on the subforum, or possibly even the thread number (i.e. this thread starts with 446485). It could also be a random seed-based algorithm.
|
|
|
|
|
|
#3 |
|
"Mike"
Aug 2002
25×257 Posts |
This code is really inelegant, but it works.
Code:
$zzz = $post[posts];
$xxx = $zzz;
if ($xxx == 0) {
$zzz = rand(1, 10000);
$xxx = $zzz;
}
$tmp = "";
$choice = time();
if ($choice % 20 == 0) {
$listofradices = array("2", "8", "10", "16");
shuffle($listofradices);
$radix = $listofradices[0];
$tmp = strtoupper(base_convert($xxx, 10, $radix)) . "<SUB>" . $radix . "</SUB>";
} else {
if ($xxx == 1) {
$tmp = "1×";
}
for ($iii = 2; $iii < $zzz; $iii++) {
$counter = 0;
while ($xxx % $iii == 0) {
$counter = $counter + 1;
$xxx = $xxx / $iii;
}
if ($counter > 1) {
$tmp = $tmp . number_format($iii) . "<SUP>" . $counter . "</SUP>" . "×";
} else {
if ($counter == 1) {
$tmp = $tmp . number_format($iii) . "×";
}
}
}
if ($xxx == $iii) {
$tmp = $tmp . number_format($xxx) . "×";
}
$tmp = substr($tmp, 0, -7);
}
|
|
|
|
|
|
#4 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Looks like 1 in 20 chance to get binary, octal, decimal, or hex post count, otherwise (19 out of 20) it's shown in factored form.
|
|
|
|
|
|
#5 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
22×1,549 Posts |
What about ...
Code:
for ($iii = 2; $iii * $iii <= $zzz; $iii++) Last fiddled with by retina on 2016-11-07 at 06:06 Reason: Colouring |
|
|
|
|
|
#6 | |
|
"Antonio Key"
Sep 2011
UK
32×59 Posts |
Quote:
![]() Or ... Code:
for ($iii = 2; $iii < $xxx; $iii++) {
Last fiddled with by Antonio on 2016-11-07 at 11:10 Reason: Me being a bit dumb! |
|
|
|
|
|
|
#7 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
22·1,549 Posts |
If $xxx is a prime then we get back the original algorithm.
ETA: But it could be this: Code:
for ($iii = 2; $iii * $iii <= $xxx; $iii++) Last fiddled with by retina on 2016-11-07 at 12:05 |
|
|
|
|
|
#8 | |
|
"Antonio Key"
Sep 2011
UK
32×59 Posts |
Quote:
Code:
if ($xxx == $iii) {
$tmp = $tmp . number_format($xxx) . "×";
}
Code:
if ($xxx != 1) {
$tmp = $tmp . number_format($xxx) . "×";
}
|
|
|
|
|
|
|
#9 |
|
Jun 2003
31×163 Posts |
|
|
|
|
|
|
#10 |
|
"/X\(‘-‘)/X\"
Jan 2013
1011011101002 Posts |
I'm still waiting for
Code:
if (!($xxx & $xxx + 1))
$tmp = 'M' . log($xxx + 1, 2);
elseif ($choice % 20 == 0) {
...
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Increase your post count and save the rainforest | The Carnivore | Lounge | 14 | 2018-01-27 18:11 |
| PCI Express 3.0 | ATH | GPU Computing | 2 | 2011-07-08 13:34 |
| Need help deciding between Athlon II X4 620 and i5 | garo | Hardware | 164 | 2010-01-30 18:59 |
| Sierpinski/Riesel Base 5: Post Primes Here | robert44444uk | Sierpinski/Riesel Base 5 | 358 | 2008-12-08 16:28 |
| Deciding squarefree numbers | Jushi | Math | 4 | 2006-03-30 13:56 |