Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve ProjectEuler #1 with ArnoldC #4

Closed
lhartikk opened this issue Jan 2, 2014 · 6 comments
Closed

Solve ProjectEuler #1 with ArnoldC #4

lhartikk opened this issue Jan 2, 2014 · 6 comments

Comments

@lhartikk
Copy link
Owner

lhartikk commented Jan 2, 2014

http://projecteuler.net/problem=1

Solve with ArnoldC.

@lhartikk
Copy link
Owner Author

-Currently ArnoldC supports only 16bit signed integers so solving the problem is quite demanding
-Either change the (only possible) variable type to 32bit integer in ArnoldC OR solve a similar problem to Euler#1 with smaller integers

@joetech
Copy link

joetech commented Feb 25, 2014

Solve any Project Euler problem with ArnoldC and I'll be happy.

@besza
Copy link

besza commented Feb 26, 2014

I tried. Can you take a look? https://gist.github.com/besza/9229091

@MrBerg
Copy link

MrBerg commented Feb 27, 2014

Here is my attempt: https://gist.github.com/MrBerg/9240899

@mrz1988
Copy link

mrz1988 commented Mar 3, 2014

Done:
https://gist.github.com/mrz1988/9326632

It would seem that the addition operation casts to an int32 if it would result in an overflow, so the problem can be done without any real magic.

@lhartikk
Copy link
Owner Author

lhartikk commented Mar 3, 2014

This is cool!
Created a new wiki page related to the Euler solutions
https://github.com/lhartikk/ArnoldC/wiki/Project-Euler-Solutions

@lhartikk lhartikk closed this as completed Mar 3, 2014
KahCosta pushed a commit to KahCosta/ArnoldC that referenced this issue Oct 25, 2018
Created the hello-world file in Objective-C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants