Code Monkey home page Code Monkey logo

udohjeremiah / projecteuler.jl Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 0.0 1.6 MB

ProjectEuler.jl is a package that allows offline access to challenging mathematical problems from Project Euler through Julia's REPL. It is a valuable resource for those looking to improve their Julia programming skills while solving interesting mathematical problems.

License: MIT License

Julia 100.00%
mathematics projecteuler mathematicalproblems projecteuler-julia

projecteuler.jl's Introduction

Installing

To install and use, follow these steps:

julia> ] # enters the package mode
pkg> add ProjectEuler

julia> using ProjectEuler

Usage

Currently, this package provides only one function: question. However, there are plans to support two more important ones, as indicated here.

question

The question function takes only one argument, an Integer value, and then it returns a struct of type Problem. The content field of the returned Problem struct is edited to render it as identical as possible to its appearance on https://projecteuler.net. An example is shown below:



Some problems have not been edited yet because they require an image or a complex mathematical equation (which, unfortunately, Julia's REPL cannot render at present). Therefore, passing certain values to question will result in an error.

Screen Size

To fully experience all the questions, you may need to increase the width of your terminal screen to a value equal to or greater than 115. You can do this by dragging either the left or right end of your terminal.

You can use the function displaysize to view the lines (height) and columns (width) of your terminal screen. The returned tuple represents the lines and columns of your terminal screen, respectively:

julia> displaysize(stdout)
(37, 115)

Contributing

We welcome contributions to this package! Users are encouraged to contribute by implementing new features and identifying/fixing bugs through pull requests (PRs) on this GitHub repository.

Currently, there are many unedited problems in the unedited_questions.txt file. We invite users with artistic skills in the REPL to take a look at these problems and see how they can render them in the Julia REPL to look exactly as they do on https://projecteuler.net.

When contributing, please ensure that your code adheres to the workflow and coding standards used in this package and that it is thoroughly tested. We also ask that you provide clear and concise documentation, including examples of how to use the new features.

Thank you for considering contributing to this package, and we look forward to your contributions!

Package Status

I regret to inform you that, due to time constraints, I am no longer able to maintain the package/repository in question. I have thoroughly enjoyed working on it and providing updates thus far.

However, I believe in the power of open-source collaboration and would like to offer an opportunity to anyone who is passionate about maintaining this package/repository to take over its ownership. If you are interested in becoming the new maintainer, kindly notify me, and I will gladly transfer ownership to you.

I appreciate your understanding and support throughout this journey. Thank you.

projecteuler.jl's People

Contributors

udohjeremiah avatar

Stargazers

 avatar Yuto Horikawa avatar dikshie avatar Marko Vukovic avatar  avatar Ludwig Austermann avatar Bryan A. S. avatar Nikita avatar Yueh-Hua Tu avatar Gaurav Arya avatar Peter avatar Guillaume Dalle avatar Orestis Ousoultzoglou avatar anand jain avatar ebigram avatar Elias Carvalho avatar Júlio Hoffimann avatar Chetan Vardhan avatar

Watchers

 avatar  avatar

projecteuler.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Rename getquestion to question?

It is not very common in Julia to name functions with get prefix. I believe that question(123) would be more terse and easier to read, but feel free to ignore the suggestion :)

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.