mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
 
Thread Tools
Old 2016-11-06, 15:30   #507
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5·17·97 Posts
Default

Quote:
Originally Posted by henryzz View Post
Which company do you trust more? Microsoft or a company you have never heard of?
Is this a trick question?

Xyzzy is offline   Reply With Quote
Old 2016-11-06, 16:27   #508
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5·17·97 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
We did some incredibly inelegant programming this evening and came up with this:
User "jvang" suggested some improvements, so we now have:
Code:
def isprime(n):
    for i in xrange(2, int(n**0.5) + 1):
        if n % i == 0: return False
    return True
a = [2, 3, 5, 7]
b = [1, 3, 7, 9]
while a != []:
    t = []
    for x in a:
        for y in b:
            if isprime(x * 10 + y): t.append(x * 10 + y)
    print a
    a = t
Code:
[2, 3, 5, 7]
[23, 29, 31, 37, 53, 59, 71, 73, 79]
[233, 239, 293, 311, 313, 317, 373, 379, 593, 599, 719, 733, 739, 797]
[2333, 2339, 2393, 2399, 2939, 3119, 3137, 3733, 3739, 3793, 3797, 5939, 7193, 7331, 7333, 7393]
[23333, 23339, 23399, 23993, 29399, 31193, 31379, 37337, 37339, 37397, 59393, 59399, 71933, 73331, 73939]
[233993, 239933, 293999, 373379, 373393, 593933, 593993, 719333, 739391, 739393, 739397, 739399]
[2339933, 2399333, 2939999, 3733799, 5939333, 7393913, 7393931, 7393933]
[23399339, 29399999, 37337999, 59393339, 73939133]
Xyzzy is offline   Reply With Quote
Old 2016-11-06, 17:38   #509
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

7·292 Posts
Default

What about appending 2 digits at once?
henryzz is online now   Reply With Quote
Old 2016-11-08, 06:21   #510
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

26·151 Posts
Default

Quote:
Originally Posted by Stargate38 View Post
That's not very energy efficient.
That is totally energy efficient. If you heat a wire (which in turn heats water, or directly your walls/floor/etc) you transform electrical energy into heat, without finding any prime and without factoring any number. All energy transforms into heat eventually, regardless of the fact that it is passing through your processor or to your boiler. One kilowatt spent on your computer produces exactly the same amount of heat as one kilowatt spent on your boiler. And more prime factors...
LaurV is offline   Reply With Quote
Old 2016-11-08, 06:39   #511
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

13×479 Posts
Default

Quote:
Originally Posted by LaurV View Post
That is totally energy efficient. If you heat a wire (which in turn heats water, or directly your walls/floor/etc) you transform electrical energy into heat ...
But there are more efficient ways to heat your house. Heat pumps, aka a/c
retina is offline   Reply With Quote
Old 2016-11-08, 07:35   #512
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2·5,393 Posts
Default

Quote:
Originally Posted by retina View Post
But there are more efficient ways to heat your house. Heat pumps, aka a/c
Indeed. The Official Monster Raving Loony Party manifesto pledge at one of the UK general elections was to address global warming by changing building regulations to require that all new buildings had to have air conditioning on the outside to cool the atmosphere.
xilman is offline   Reply With Quote
Old 2016-11-08, 08:30   #513
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

966410 Posts
Default

Quote:
Originally Posted by xilman View Post
...all new buildings had to have air conditioning on the outside to cool the atmosphere.
Love that! Wonderful! Haha...
LaurV is offline   Reply With Quote
Old 2016-11-08, 09:49   #514
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

7·292 Posts
Default

Quote:
Originally Posted by xilman View Post
Indeed. The Official Monster Raving Loony Party manifesto pledge at one of the UK general elections was to address global warming by changing building regulations to require that all new buildings had to have air conditioning on the outside to cool the atmosphere.
While the majority of buildings in the UK don't have it on the inside.
henryzz is online now   Reply With Quote
Old 2016-11-08, 10:06   #515
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2·5,393 Posts
Default

Quote:
Originally Posted by LaurV View Post
Love that! Wonderful! Haha...
Although a Raving Loony has never been elected to Parliament, several of their manifesto pledges have been enacted. Examples include lowering the voting age to 18, passports for pets and all-day pub opening hours.
xilman is offline   Reply With Quote
Old 2016-11-08, 12:21   #516
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

23·11·73 Posts
Default

Quote:
Originally Posted by LaurV View Post
That is totally energy efficient. If you heat a wire (which in turn heats water, or directly your walls/floor/etc) you transform electrical energy into heat, without finding any prime and without factoring any number. All energy transforms into heat eventually, regardless of the fact that it is passing through your processor or to your boiler. One kilowatt spent on your computer produces exactly the same amount of heat as one kilowatt spent on your boiler. And more prime factors...
However, since I keep my computers in an outhouse because they make a noise like eighteen screaming banshees and disrupt the tranquility of my abode, all I end up with as a side-effect of my prime factors is a warm outhouse. It is occasionally suggested that I could grow cactuses or keep tortoises there, but I go to the outhouse fairly rarely and it seems sad to grow cactuses and keep tortoises that are only rarely seen.
fivemack is offline   Reply With Quote
Old 2016-11-08, 15:09   #517
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2·5,393 Posts
Default

Quote:
Originally Posted by fivemack View Post
However, since I keep my computers in an outhouse because they make a noise like eighteen screaming banshees and disrupt the tranquility of my abode, all I end up with as a side-effect of my prime factors is a warm outhouse. It is occasionally suggested that I could grow cactuses or keep tortoises there, but I go to the outhouse fairly rarely and it seems sad to grow cactuses and keep tortoises that are only rarely seen.
Pot plants?
xilman is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Official "Faits erronΓ©s dans de belles-lettres" thread ewmayer Lounge 39 2015-05-19 01:08
Official "all-Greek-to-me Fiction Literature and Cinema" Thread ewmayer Science & Technology 41 2014-04-16 11:54
Official "Lasciate ogne speranza" whinge-thread cheesehead Soap Box 56 2013-06-29 01:42
Official "Ernst is a deceiving bully and George is a meanie" thread cheesehead Soap Box 61 2013-06-11 04:30
Official "String copy Statement Considered Harmful" thread Dubslow Programming 19 2012-05-31 17:49

All times are UTC. The time now is 20:02.


Fri Aug 6 20:02:12 UTC 2021 up 14 days, 14:31, 1 user, load averages: 2.94, 3.11, 3.16

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.