Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd more solutions to Project Euler problems #2695
Comments
UPDATE: Please read the Project Euler Solution Guidelines for Coding Style before opening a pull request.UPDATE: Only submit solution to problems which doesn't exists in this repository.As of now, we are only accepting PRs with one algorithm in it as it is easier to review one file at a time. NOTE:
One step at a time FAQ:
|
|
Where can I get the problems from? |
|
https://projecteuler.net/ |
|
Thanks it helped |
Added problem_38 folder with solution file sol.py. TheAlgorithms#2695
Added problem_38 in project_euler TheAlgorithms#2695
|
I would love to join and contribute. Project Euler was always fun to me back in college :) |
|
Hi, |
|
@berry-thawson Please refer to problem_54#L367-L369 import os # with other imports
...
def solution():
script_dir = os.path.abspath(os.path.dirname(__file__))
<file_name_without_extension> = os.path.join(script_dir, "<file_name>")
with open(<file_name_without_extension> , "r") as file_hand:
# ... your code ...
I hope this clears your doubt. If you still have any problem, don't hesitate to ask. |
|
Thanks @dhruvmanila |
|
Hi, can we add solution to any problem? |
Name: Divisor Square Sum For a positive integer n, let σ2(n) be the sum of the squares of its divisors. For example, σ2(10) = 1 + 4 + 25 + 100 = 130. Find the sum of all n, 0 < n < 64,000,000 such that σ2(n) is a perfect square. reference: TheAlgorithms#2695
|
I want to submit my solutions. How do i submit ? |
|
I'm a keen Euler solver.please let me help in providing efficient solutions to the problems. |
|
@aceking007 In these issue |
|
hey I also want to join,please can u let me know how many problems we need to solve?and in which language? |
@maanpatel2492 Yes. Any project Euler problem that doesn't have a solution yet in the repo. |
|
@deepanshuoct12 Submit a PR containing the solution to one unsolved project Euler problem. The language is Python. |
|
Doesn't the Project Euler website specifically say not to post solutions to the problems publicly? |
|
@AkshitAggarwal
But ...
They also have the following FAQ put up on their site:
Thus, Project Euler is not an official competition and you won't get anything because of participating (except the "joy" of solving a problem by yourself and the "Eureka" moment). It does post some guidelines regarding the questions and how to discuss the answers. But if you post the solutions, explicitly marking what question it belongs to, you don't interfere with the spirit of the whole endeavor, as only people who are interested in "cheating" would open that link before solving a question. It's more of a moral code that you should stick with. |



Project Euler has about 700 problems, but the current repository hosts solutions for only about 60-70 problems.
I'm willing to work on the issue and also if someone wants to help they can join in.
We can create guidelines on how many minimum solutions a PR should have to prevent spammy PRs with just one or two easy solutions. (open to discussion)