Skip to content

craigmayhew/bigprimes.net

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

bigprimes.net

Serverless Rust with Web Assmebly.

Rust Build Status

Setup your local dev environment

  1. Clone bigprimes.net git clone https://github.com/craigmayhew/bigprimes.net.git
  2. Install cargo rustc, rustup curl https://sh.rustup.rs -sSf | sh
  3. Install wasm-pack curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
  4. cargo install --locked trunk
  5. cargo install wasm-bindgen-cli
  6. Build trunk build
  7. Build, serve and rebuild on changes trunk serve --open

Contributing

  1. Write code
  2. Run tests
  3. Create PR

Build

  • Build: wasm-pack build or trunk build
  • Build and serve locally: trunk serve --open

Fun Facts

  • there are 1.4*10297 primes smaller than 300 digits
  • there is always a prime between n^2 and (n+1)^2.

Thanks