473,473 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

JAPH

import sys
charset = " .JPacehknorstuy"
modulo = 17
s = 69859911049503515105680510599913390885187193231927 247909305172858127641629
num = iter(range(2, 9999))
while s != 1 :
n = num.next()
if s % n == 0 :
sys.stdout.write("%s" % charset[(n - 1) % modulo])
s /= n
#end if
#end while
sys.stdout.write("\n")

Nov 22 '05 #1
2 1128
charset, modulo, japh = " .JPacehknorstuy", 17, ""
s =
69859911049503515105680510599913390885187193231927 247909305172858127641629
for n in xrange(2,9999):
if s%n==0:
japh += charset[(n - 1) % modulo]
s /= n
if s==1:
break
print japh

Nov 22 '05 #2
Szabolcs Nagy wrote:
charset, modulo, japh = " .JPacehknorstuy", 17, ""
s =
69859911049503515105680510599913390885187193231927 247909305172858127641629
for n in xrange(2,9999):
if s%n==0:
japh += charset[(n - 1) % modulo]
s /= n
if s==1:
break
print japh


More pythonic:

print "Just another Python hacker."

:-)
Michael.
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

58
by: @ | last post by:
A benchmark in 2002 showed PHP is much slower in shell or when Apache has Mod_Perl. With the new PHP kissing Java's ass, Perl is once again the #1 CGI choice. Java is for a big team in short...
7
by: Chris | last post by:
Hi I am posting this on both the perl and python groups My intention is not to start a war or anything else, I would just like some pragmatic advice. My apologies to the python group I am...
14
by: Xah Lee | last post by:
Just bumped into another irresponsibility in perl. the crime in question this time is the module File::Basename. Reproduction: 1. create a directory containing a file of this name:...
42
by: Fred Ma | last post by:
Hello, This is not a troll posting, and I've refrained from asking because I've seen similar threads get all nitter-nattery. But I really want to make a decision on how best to invest my time....
6
by: Xah Lee | last post by:
© # -*- coding: utf-8 -*- © © # in Python, there's a special type of © # data structure called keyed list. it © # is a unordered list of pairs, each © # consists of a key and a value. It is ©...
15
by: toylet | last post by:
In most perl examples, it used this method to trap error: open(INFILE, $fname) or die "Unable to open $fname"; process_file(); close(INFILE) other_codes(); Now that if I don't want to die...
4
by: japh | last post by:
Vim is swell about turning standard varbiable types green - like: int myAge; double myIQ; or whatnot. But if I have a class Point and declare a Point: Point upperLeftCorner; Point...
8
by: Michael Tobis | last post by:
I came across the "japh" concept today and decided to do one of my own, obviously, interpreting the 'p' somewhat loosely, http://en.wikipedia.org/wiki/JAPH but I'm not entirely satisfied with...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.