Skip to content
main
Switch branches/tags
Code

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

About

An entirely procedurally generated single page web app, written exclusively in rust and compiled to WebAssembly

Topics

Resources

License

Sponsor this project