Skip to content

phungtuantu/multiplicative-persistence-calculator-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplicative Persistence Calculator

Introduction

  • The Persistence of a number is the number of times we can apply a function f to it.
  • The Multiplicative Persistence is the Persistence on applying the function "multiply each digit of the number together":

Multiplcative function formula

With f the Multiplicative function, n an integer, b a specific base.

The project

The program will attempt to find the smallest number for each Multiplicative Persistence, given a specific base and a maximum value to stop at. The main focus of the project will be:

  • Optimisation: The program should not naively search every possible number. It should be able to work search all values of uint64 in reasonable amount of time.
  • Learning: The program is a way for the author to learn writing Rust, thus it will have to contain multiple different modules at the minimum (not just a script).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages