Re: [Tutor] Inspiration/examples

2009-03-23 Thread H.G. le Roy
2009/3/22 Mathias Andersson > Im currently trying to learn how to use python. But my only problem seems to > be at what to make? So anyone have a nifty list or some ideas on things to > program, school tasks or algorithms to try and implement. Beginner- to > mid-skill level. Thanks in advance.

[Tutor] improving the speed of prime number code

2009-02-06 Thread H.G. le Roy
Hi, I'm stuck with Problem 10 ( http://projecteuler.net/index.php?section=problems&id=10) :-) A part of my code deals with the calculation of prime numbers. However it is really slow. Hopefully you have some ideas how to make it faster. pz = [2] # only iterate over odd numbers for i in xrange(3,

[Tutor] transforming an integer to a list of integers

2009-02-03 Thread H.G. le Roy
Hi, recently I learned about Project Euler (http://projecteuler.net/) and now I'm trying to work me through. At the moment I'm thinking about http://projecteuler.net/index.php?section=problems&id=8 One step for my solution should be transforming this big integer to a list of integers. I did: imp