One weird trick for using Python to determine if a number is a power of another number @MadComputerScientist1
One weird trick for using Python to determine if a number is a power of another number  @MadComputerScientist1
Uploaded March 2024 | Updated September 2026, 10 hours ago
Here's a challenge I pulled off of program Euler. I show three ways of doing it,one of which only works for powers of 2. Note: I had to double check my math and I will double check my code to make sure it works like I intend.

As always, please remember to like, commend and subscribe. Let me know what you think below.
One weird trick for using Python to determine if a number is a power of another numberInternet prodigy predicts the first 100 days of Donald Trumps stable geniusacademics insert invisible prompts to force postive reviews and publicationNo, programmers did not program voting machines to favor Donald TrumpImplementing the Trial Division AlgorithmWhy an Atari 2600 game beating ChatGPT at Chess is expectedAlgebraic Problem Solving StrategiesThe battle over AI art is a legal one, not a technical oneElon Musks Qbitler Youth Save $0 cancelling VSCode licensesHow much math do you need to study computer science?Trump is many bad things, but is he also the antichrist?The Book of Mormon Data Science Project and the K Nearest Neighbor Algorithm
Mad Computer Scientist |

One weird trick for using Python to determine if a number is a power of another number

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER