GithubHelp home page GithubHelp logo

fried-man-education / euler_solutions Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 167 KB

A collection of various solutions to the problems presented in Project Euler.

Home Page: https://projecteuler.net/

License: Apache License 2.0

Assembly 7.09% C 26.72% C# 3.03% Python 13.31% Common Lisp 49.85%
assembly c clisp csharp euler-solutions python

euler_solutions's Introduction

Project Euler Solutions

About

This repo was created for educational purposes. It serves as a collection for the various solutions to the problems presented in Project Euler. The idea is to have each programmer specialize in answering the problems in a programming language they arent used to and to have others who are more proficient help them out when they are stuck. Each problem will be housed in its own folder where every contributor submits a solution in their language of choice.

The Contributors:

How to Use the Code

General:

  • Each program can be opened in a variety of text editors or development envirnoments
  • By agreement among the contributors to this project, and for the sake of flexibility, Vim is our editor of choice.
  • The command vim Solution.<s/c/py/cs/lisp> from within the directory of the desired program will open the file.
  • All commands are assumed to be run within the directory of the desired file unless otherwise specified.

ARM Assembly

ARM is a 32-bit architecture that has a simple goal in mind: flexibility. While this is great for integrators (as they have a lot of freedom when designing their hardware) it is not so good for system developers which have to cope with the differences in the ARM hardware. The ARM Assembly code in this repo was written for the Raspberry Pi Model B+ running Raspbian. Below are terminal commands useful for writing, testing, and running our Solution.s files.

For Compiling:

  • as -g -o <program_name>.o <program_name>.s assembles assembly code
  • ld -o <program_name> <program_name>.o makes executable

For Debugging:

  • gdb <program_name> starts debugger
  • list shows next 10 lines of code
  • b <line_number> sets breakpoint at <line_number>
  • run runs program until breakpoint or exit
  • info r gets info on all registers

C

C is a general-purpose, procedural computer programming language. By design, C provides constructs that map efficiently to typical machine instructions and has found lasting use in applications previously coded in assembly language. Such applications include operating systems and various application software for computers, from supercomputers to embedded systems. It was originally developed at Bell Labs by Dennis Ritchie. Later, it was applied to re-implementing the kernel of the Unix operating system and a huge variety of other projects. Nowadays, it is one of the most widely used programming languages, with C compilers from various vendors available for the majority of existing computer architectures and operating systems. Below are some of the necessary commands to run our Solution.c files.

For Compiling:

  • gcc Solution.c -o Solution compiles the code into an executable called Solution
  • "/path/to/file/"Solution runs the executable

euler_solutions's People

Contributors

fried-man avatar impeterlewis avatar mcapoor avatar pedrovictorcoding avatar zachlloyd01 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.