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)
- 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.
- Run the script in a Ruby environment.
- Select the desired language (English or French).
- Choose the operation:
- Test a specific number for primality.
- Display all prime numbers up to a certain limit.
- Follow the on-screen instructions to input numbers.
- Ruby environment (version 2.0 or later recommended)
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.
Azx5G