prime_number_checker 0.0.1
prime_number_checker: ^0.0.1 copied to clipboard
A simple, lightweight Dart package to check if a number is prime (tub son). Useful for math projects, competitive programming, or any app that needs prime number checking.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add prime_number_checker
With Flutter:
$ flutter pub add prime_number_checker
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
prime_number_checker: ^0.0.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:prime_number_checker/is_prime_number_.dart';