Author Topic: DJ Omnimaga reaches 50k posts; everything explodes  (Read 10922 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #15 on: April 25, 2013, 03:48:40 pm »
It's fine, it wasn't prime, anyways.

Offline Vijfhoek

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 120
  • Rating: +13/-1
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #16 on: April 25, 2013, 03:49:14 pm »
What's the next perfect number?
-UPDATE: my super awesome python script is working on it,
-UPDATE 2: it's 2.096.128. NOTHING IS IMPOSSIBLE D:
« Last Edit: April 25, 2013, 03:51:57 pm by Vijfhoek »

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #17 on: April 25, 2013, 04:40:01 pm »
Vijfhoek good luck!
Hey, how would one find the nth perfect number on an Nspire?
Keep trying.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #18 on: April 25, 2013, 04:43:30 pm »
Generate Mersenne primes and you are good to go. Mersenne primes are of the form 2p-1 where p is prime (but not all prime p will yield a prime number with 2p-1). Then multiply that by 2p-1 and you have a perfect number. There are also some pretty decent prime tests for Mersenne primes.

Offline Vijfhoek

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 120
  • Rating: +13/-1
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #19 on: April 25, 2013, 04:49:43 pm »
Behold my super duper efficient coding work:

Code: [Select]
import math
import time

f = open('perfects.txt', 'w')
current_prime = 2
i = 0
done = False
while not done:
    if i == 10000: done = True
    divider = 2
    flag = False

    while divider < (current_prime/2 + 1) and not flag:
        if current_prime % divider == 0:
            flag = True
        divider += 1

    if not flag:
        one = 1 << (current_prime - 1)
        two = 1 << current_prime
        result = one * (two - 1)
        f.write(str(result) + '\n')
        i += 1
        if i % 100 == 0: print(i)
       
    current_prime += 1

f.flush()
f.close()
Made it for my teacher a while ago in Python
« Last Edit: April 25, 2013, 04:54:43 pm by Vijfhoek »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #20 on: April 25, 2013, 06:57:00 pm »
DJ, stop ruining that nice round number with posting. >.>
^ that :P

Also, the next milestone is 100 000 posts ;D
Nope, it is 524288 posts (219) :P

Anyways, congrats DJ_O :D
What about 65536? :P

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #21 on: April 25, 2013, 07:23:32 pm »
In addition, an unusual number of blue lobsters have been seen exploding in the region of Québec City. We believe a Wi-Fi-powered device under the bed of the St. Lawrence River has been set to fire a colony of lobsters when an user reaches a postcount of 50000 on Omnimaga. We're contacting ZAP Québec, a provider of free Wi-Fi hotspots in the region, to identify the culprit.

There's something in the wifi!

* pimathbrainiac doesn't know where he is!
Ha doctor who reference! :D

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #22 on: April 25, 2013, 07:42:28 pm »
I have a significantly faster and smarter algorithm for primality tests.. and I would just use Lucas Lehmer tests on Mersenne's :P
I HAD NO IDEA perfect numbers can be generated from mersennes?
Keep trying.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #23 on: April 25, 2013, 07:43:35 pm »
!peanuts
and congrats DJ :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #24 on: April 25, 2013, 09:06:17 pm »
Congrats on the post milestone! ;D

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #25 on: April 25, 2013, 09:08:05 pm »
maybe we should add another usergroup for if you have more than 50k posts (one that only dj will be in, lol, level 16 ^^)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #26 on: April 25, 2013, 09:48:00 pm »
Yeah DJ changed his userlevel, that would had been LV16. But nobody reached LV14 yet. But DJ.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #27 on: April 25, 2013, 09:49:36 pm »
Who cares?
I will :P
* Sorunome tries to hide his evil regime

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #28 on: April 25, 2013, 11:03:06 pm »
Lol. Also juju your image link is broken ???

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: DJ Omnimaga reaches 50k posts; everything explodes
« Reply #29 on: April 25, 2013, 11:07:16 pm »
To me it's there....

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!