0 Members and 2 Guests are viewing this topic.
import mathimport timef = open('perfects.txt', 'w')current_prime = 2i = 0done = Falsewhile 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 += 1f.flush()f.close()
Quote from: Matrefeytontias on April 25, 2013, 04:08:07 amQuote from: Stefan Bauwens on April 25, 2013, 02:56:13 amDJ, stop ruining that nice round number with posting. >.>^ that Also, the next milestone is 100 000 posts Nope, it is 524288 posts (219) Anyways, congrats DJ_O
Quote from: Stefan Bauwens on April 25, 2013, 02:56:13 amDJ, stop ruining that nice round number with posting. >.>^ that Also, the next milestone is 100 000 posts
DJ, stop ruining that nice round number with posting. >.>
Quote from: Juju on April 25, 2013, 01:06:43 amIn 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!
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.