Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Division of an integer into sub-numbers
Post: RE: Division of an integer into sub-numbers

(Jun-13-2019, 02:27 PM)perfringo Wrote: (Jun-13-2019, 12:01 PM)Richard_SS Wrote: i need to add a comma between each number and append every number into a list Do I understand correctly that you ha...
Richard_SS General Coding Help 4 2,956 Jun-14-2019, 10:04 AM
    Thread: Division of an integer into sub-numbers
Post: Division of an integer into sub-numbers

Hello everyone, ive got an interesting problem. I have a big number (for example 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949...
Richard_SS General Coding Help 4 2,956 Jun-13-2019, 12:01 PM
    Thread: 3rd problem from project Euler
Post: RE: 3rd problem from project Euler

(Jun-05-2019, 10:56 AM)perfringo Wrote: If I casually observe it then it seems too brute-force approach. As far as I understand one don't need to know all primes in range. One need to go up on only ...
Richard_SS General Coding Help 6 3,207 Jun-05-2019, 12:13 PM
    Thread: 3rd problem from project Euler
Post: RE: 3rd problem from project Euler

(Jun-05-2019, 10:06 AM)DeaD_EyE Wrote: You can improve the algorithm, if you define some primes. Here an example: def is_prime(n): primes = [ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47 ...
Richard_SS General Coding Help 6 3,207 Jun-05-2019, 10:51 AM
    Thread: 3rd problem from project Euler
Post: 3rd problem from project Euler

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? - I have written a programm for solving this problem, it easily displays prime factors of...
Richard_SS General Coding Help 6 3,207 Jun-05-2019, 09:57 AM
    Thread: Need to improve a programm
Post: RE: Need to improve a programm

(Mar-16-2019, 09:19 PM)ichabod801 Wrote: In your is_palindrome function, you should use the text parameter you passed to the function, and you need to save the replacements back into that, to keep t...
Richard_SS Homework 4 2,795 Mar-17-2019, 04:16 AM
    Thread: Need to improve a programm
Post: RE: Need to improve a programm

(Mar-16-2019, 03:25 PM)ichabod801 Wrote: First of all, you would use the lower method (text.lower()) to remove the problem of lower case letters not matching uppercase letters. For the rest you don'...
Richard_SS Homework 4 2,795 Mar-16-2019, 04:44 PM
    Thread: Need to improve a programm
Post: Need to improve a programm

The program checks if the input text is palindrome. After checking a text like "Rise to vote, sir." it wont find it as palindrome, even if it is. I need to improve a program so that it could ignore pu...
Richard_SS Homework 4 2,795 Mar-16-2019, 02:47 PM
    Thread: A program for backing up documents (doesnt work(code is inside))
Post: RE: A program for backing up documents (doesnt wor...

(Mar-10-2019, 02:21 PM)Larz60+ Wrote: This is much better done using pathlib Please give step details of what you want to do like:copy all files in ... create new dir ... zip contents of ... to .....
Richard_SS Homework 4 3,424 Mar-10-2019, 06:40 PM
    Thread: A program for backing up documents (doesnt work(code is inside))
Post: A program for backing up documents (doesnt work(co...

The programm should create a backup of selected folder into a folder with a name as current data, and backed up archive should be named as current time. When running a programm im getting a following ...
Richard_SS Homework 4 3,424 Mar-10-2019, 12:00 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020