artbeav / pyeuler Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tokland/pyeuler
Project Euler problems solved in Python with functional programming.style
Home Page: http://pyeuler.wikidot.com/
This project forked from tokland/pyeuler
Project Euler problems solved in Python with functional programming.style
Home Page: http://pyeuler.wikidot.com/
= Introduction http://projecteuler.net/ Project Euler is a website dedicated to a series of computational problems intended to be solved with computer programs. The project attracts adults and students interested in mathematics and computer programming. Here we will solve them using Python with purely functional programming style. Some people have expressed their concerns about making the solutions of the Euler Project public. While the risk of having people using them unjustly certainly exists (shame on them), the benefits of sharing knowledge should exceed this petty inconvenient. = On functional programming If "functional programming" sounds unfamiliar to you, read these pages and discover this exciting paradigm: http://en.wikipedia.org/wiki/Functional_programming http://linuxgazette.net/109/pramode.html http://www.ibm.com/developerworks/library/l-prog.html http://www.amk.ca/python/writing/functional Python is not a purely functional language, so some (many, I am afraid) of these solutions won't be as pythonic as one would like. But this is the challenge: solve the Euler Project problems using pre FP, state variables are absolutely forbidden! If you are a Python novice this is probably not the best place to start. But if you already are familiar with Python and want to explore its functional possibilities, it may be interesting. = Get the solutions To check the correctness of the solutions we can download a text file from this project (not related to pyeuler): $ wget http://projecteuler-solutions.googlecode.com/svn/trunk/Solutions.txt = Run the problems $ python pyeuler/run.py --solutions-file Solutions.txt 1: 233168 (ok) 2: 4613732 (ok) ... $ python pyeuler/run.py --solutions-file Solutions.txt {1..3} 5 1: 233168 (ok) 2: 4613732 (ok) 3: 6857 (ok) 5: 232792560 (ok)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.