Skip to content
Sign upLog in
Profile icon

Evan Skyberg

@EvanSkyberg
  • Euler Brick Locator

    Cover page
    Made with C++

    A program to find Euler bricks, perfect or not. Will take a long time to finish running, needs further optimization.

    Recent comments (0)
Repls
Community
EvanSkyberg
EvanSkyberg
shared a Post
3 years ago
1
Euler Bricks
I made this program after learning about Euler Bricks, as I thought they were very interesting. It brute-forces every Euler Brick, so long as they don
Euler Brick Locator
C++
Giothecoder
Giothecoder
Use a function macros instead of regular functions to reduce call overhead. 😜 jk. Uh, small and kinda weird thing: switch the order in which you test the conditionals, so like (cond1 && cond2) becomes (cond2 && cond1). This is because of short circuiting. If you don’t know what that is it’s really easy, just look it up. Actually going on that I suggest just putting the results of the calls in a bool for each and then use those in the conditionals to reduce the amount of calls your making. That3 years ago