A Prime Factorization Algorithm that Uses a Text File
A post that is at least within two week of the last one? This will hopefully be the new norm. I was about to get this out two days prior, but Github had some issues when I was about to upload it on the first day. I got this uploaded to Github the yesterday, but it was late, so I didn't make a post. Nevertheless, it's time to talk about this code. I have created a python program that shall do prime factorization when given an integer. You can find it here on Github . The Background So this is another program requested by my computer science teacher. He demanded a program that would be given a number and return the prime factors of it along with how many times each was used (and specifically in the order you see in the program's output). Initially, I though this was an easy program. There's a rule I've known since middle school on how to prime factorize: Start by dividing the number by 2 for as many times possible When you can no longer divide by 2, div