GithubHelp home page GithubHelp logo

azx5g / primenb-rb Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15 KB

This Ruby script allows users to test if a specific number is prime or to display all prime numbers up to a specified limit. The script includes a language selection feature at the beginning, allowing users to choose between English and French for the interface and outputs. (It's from a Maths class homework)

License: GNU Affero General Public License v3.0

Ruby 100.00%

primenb-rb's Introduction

Prime Number Tester for Maths Class (Ruby)

Description

This Ruby script allows users to test if a specific number is prime or to display all prime numbers up to a specified limit. The script includes a language selection feature at the beginning, allowing users to choose between English and French for the interface and outputs. (It's from a Maths class homework)

Features

  • Language Selection: Choose between English and French for the user interface and result displays.
  • Prime Number Testing: Test if a given number is a prime number.
  • Display Prime Numbers: List all prime numbers up to a specified upper limit.

Usage

  1. Run the script in a Ruby environment.
  2. Select the desired language (English or French).
  3. Choose the operation:
    • Test a specific number for primality.
    • Display all prime numbers up to a certain limit.
  4. Follow the on-screen instructions to input numbers.

Requirements

  • Ruby environment (version 2.0 or later recommended)

License

This project is distributed under the GNU Affero General Public License version 3.0 (AGPL-3.0). This license requires that any modifications and larger works based on this project must also be released under the same license. Additionally, if you run a modified version of this software in a network server or provide access to it to others in any way, you must also make the source code available under this license.

Author

Azx5G

primenb-rb's People

Contributors

azx5g avatar

Watchers

 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.