- #1

- 1,450

- 590

Any book recommendations for one wanting to learn programming in order to solve problems from Project Euler. I am familiar with number theory, but not with programming.

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Studying
- Thread starter MidgetDwarf
- Start date

In summary, if you want to learn programming to solve problems from Project Euler, I recommend "Introduction to Scientific Programming with Python" by Springer.f

- #1

- 1,450

- 590

Any book recommendations for one wanting to learn programming in order to solve problems from Project Euler. I am familiar with number theory, but not with programming.

- #2

Science Advisor

Homework Helper

Gold Member

2022 Award

- 6,735

- 2,423

https://link.springer.com/book/10.1007/978-3-030-50356-7

For simpler projects I recommend them to use https://codewith.mu/

This might be of interest for you

Just google "number theory with sage" "abstract algebra with sage" etc and you'll find tons of material like these

- https://math.gordon.edu/ntic/ ("Number Theory: In Context and Interactive", has Sage excersies)
- http://abstract.ups.edu/index.html ("Abstract Algebra: Theory and Applications"click on "sage and aata" in the left menu)
- https://doc.sagemath.org/html/en/prep/Quickstarts/Abstract-Algebra.html ("Sage quickstart for algebra")

- #3

- 1,450

- 590

Thanks for the great links. I was unaware of the existence of Sage.

"Introduction to Scientific Programming with Python"

https://link.springer.com/book/10.1007/978-3-030-50356-7

For simpler projects I recommend them to use https://codewith.mu/

This might be of interest for you

https://www.sagemath.org/

Just google "number theory with sage" "abstract algebra with sage" etc and you'll find tons of material like these

- https://math.gordon.edu/ntic/ ("Number Theory: In Context and Interactive", has Sage excersies)
- http://abstract.ups.edu/index.html ("Abstract Algebra: Theory and Applications"click on "sage and aata" in the left menu)
- https://doc.sagemath.org/html/en/prep/Quickstarts/Abstract-Algebra.html ("Sage quickstart for algebra")

I ordered a physical copy of the Springer book.

- #4

Science Advisor

Homework Helper

Gold Member

2022 Award

- 6,735

- 2,423

I have some more Sage stuff if you are interested and want to go down that route

- #5

Science Advisor

Homework Helper

Gold Member

- 4,383

- 2,688

- #6

Science Advisor

Homework Helper

Gold Member

- 4,383

- 2,688

Do you think Sage would be useful for solving Project Euler problems?I have some more Sage stuff if you are interested and want to go down that route

- #7

Mentor

- 65,545

- 17,344

Can you list a few of the problems from Project Euler that you are interested in working on? That would help us in our recommendations, I think. Thanks.

Any book recommendations for one wanting to learn programming in order to solve problems from Project Euler. I am familiar with number theory, but not with programming.

- #8

Science Advisor

Homework Helper

Gold Member

2022 Award

- 6,735

- 2,423

Rethorical question?Do you think Sage would be useful for solving Project Euler problems?

- #9

Science Advisor

Homework Helper

Gold Member

- 4,383

- 2,688

Not at all. As I understand it, the aim of SageMath is to create an open source alternative to declarative math packages such as Matlab and Mathematica. If you look at the "leader board" for Project Euler there is only one entry for an Eulerian who declares that they use Mathematica.Rethorical question?

Whilst some of the early problems can easily be solved using e.g. Mathematica in reasonable time e.g. https://projecteuler.net/problem=1, this leaves the "heavy lifting" to the package and does not give you the experience of efficiently reducing the size of the solution space that is necessary in solving many of the later problems.

- #10

Science Advisor

Homework Helper

Gold Member

2022 Award

- 6,735

- 2,423

Just because there are packages does not mean one has to use them. One could also use the packages to check the solution. I mean if you do not want to use the inbuilt "mod" function, just write your own :-)"heavy lifting" to the package and does not give you the experience of efficiently reducing the size of the solution space that is necessary in solving many of the later problems.

EDIT: I guess GNU octave is still "good" these days. It is basically a free version of MATLAB

Last edited:

- #11

- 1,450

- 590

As for what problems I want to solve in Project Euler. I want to start from 1 going upwards. I see it more as practicing the number theory I know, and learning more, while learning a bit of python, or what ever language, in the process.

Share:

- Replies
- 7

- Views
- 418

- Replies
- 4

- Views
- 379

- Replies
- 2

- Views
- 307

Courses
Which C++ book should I read?

- Replies
- 3

- Views
- 467

- Replies
- 40

- Views
- 2K

- Replies
- 4

- Views
- 354

- Replies
- 12

- Views
- 912

- Replies
- 4

- Views
- 885

- Replies
- 1

- Views
- 524

- Replies
- 19

- Views
- 931