GithubHelp home page GithubHelp logo

eratosthenes's Introduction

Eratosthenes

Eratosthenes is a mathematics library written in pure Rust. It provides various mathematical operations and sequences commonly used in solving mathematical problems, particularly those found on Project Euler. This library is designed to be simple, efficient, and easy to use.

Please note that this library is in its early stages and missing important features. It is evolving with time.

Features

  • array_clean: Cleans an input array by removing duplicate values and sorting the elements.
  • array_merge: Merges two arrays into a single array without modifying the original arrays.
  • factors: Calculates the factors of a given number.
  • mean_usize: Calculates the mean value of a vector of unsigned integers.
  • mean_f64: Calculates the mean value of a vector of floating-point numbers.
  • factors_prime: Calculates the prime factors of a given number.
  • is_palindrome: Checks if a given number is a palindrome.
  • sum_even: Calculates the sum of even numbers in an array.
  • sum_odd: Calculates the sum of odd numbers in an array.
  • arithmetic: Generates an arithmetic sequence of numbers.
  • fibonacci: Generates a Fibonacci sequence up to a specified limit.
  • nth_fibonacci: Returns the nth Fibonacci number.
  • primes: Generates prime numbers up to a specified limit.
  • nth_prime: Finds the nth prime number.
  • is_prime: Checks if a number is prime.
  • square_numbers: Generates a vector of square numbers.
  • triangular_numbers: Generates a vector of triangular numbers.
  • nth_triangular: Returns the nth triangular number.

Usage

To add this to your Rust project as a Git dependency, include in dependencies:

eratosthenes = { git = "https://github.com/haz0110/eratosthenes", branch = "master"  }

eratosthenes's People

Watchers

Hazar 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.