Posts

Showing posts from October, 2018

A Prime Factorization Algorithm that Uses a Text File

Image
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

A Quadratic Equation Solver & What I have been doing.

Image
  Indeed. It has been a long time. Right here I got a code for solving a quadratic equation. I'll get to that in a moment after I talk about why I have not been posting much to here. So when I starting posting in late 2017 and early 2018, there wasn't much I had to show. All I had were some previous works done for a class along with a very simple idle game. The main reason I stopped posting was there were nothing interesting to tell about. I was also not in a position to do much more, I had to do some intense studying for the rest of the school year. It also wasn't until the second semester of last year that my computer science class got into coding, and even then it was super simple stuff. My computer was in a rather problematic state. There was not enough memory for engines and was getting slow. Things have changed since then. I have gotten a new laptop that can do way more than what my old computer can. Thus, I can now use engines like Unity or Unreal witho