Skip to content

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

Notifications You must be signed in to change notification settings

Azx5G/primenb-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages