Re: [Tutor] prime factorisation

2018-03-12 Thread Bruce Todd Puls
I think You would do much better if You wrote pseudo code first, i.e. write each step out in words, code is much easier to write following pseudo code Are You trying to factor Prime Numbers? Prime Number factored (Prime Number and 1) https://en.wikipedia.org/wiki/Table_of_prime_factors#1_to_100

Re: [Tutor] prime factorisation

2018-03-12 Thread Steven D'Aprano
Hello Bernd, My comments below, interleaved with yours. On Sun, Mar 11, 2018 at 04:23:02PM +0100, Bernd Hewener wrote: > Functions for reading in the number and finding the primes are working > alright (of Course, finding primes up to ½ Number would suffice). Actually you only need to go up

[Tutor] prime factorisation

2018-03-11 Thread Bernd Hewener
Dear python tutors, for training purposes, I am writing a Python program for prime factorisation. Functions for reading in the number and finding the primes are working alright (of Course, finding primes up to ½ Number would suffice). Still, the function for finding the factorization itsel