![]() |
|
|
#507 |
|
"Mike"
Aug 2002
5·17·97 Posts |
|
|
|
|
|
|
#508 | |
|
"Mike"
Aug 2002
5·17·97 Posts |
Quote:
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] |
|
|
|
|
|
|
#509 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
7·292 Posts |
What about appending 2 digits at once?
|
|
|
|
|
|
#510 |
|
Romulan Interpreter
Jun 2011
Thailand
26·151 Posts |
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...
|
|
|
|
|
|
#511 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
13×479 Posts |
|
|
|
|
|
|
#512 |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
2·5,393 Posts |
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.
|
|
|
|
|
|
#513 |
|
Romulan Interpreter
Jun 2011
Thailand
966410 Posts |
|
|
|
|
|
|
#514 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
7·292 Posts |
While the majority of buildings in the UK don't have it on the inside.
|
|
|
|
|
|
#515 |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
2·5,393 Posts |
|
|
|
|
|
|
#516 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
23·11·73 Posts |
Quote:
|
|
|
|
|
|
|
#517 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
2·5,393 Posts |
Quote:
|
|
|
|
|
![]() |
| 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 |