gvergnaud / hotscript

A library of composable functions for the type-level! Transform your TypeScript types in any way you want using functions you already know.
3.51k stars 59 forks source link

feat: export prime type #63

Closed un4uthorized closed 1 year ago

un4uthorized commented 1 year ago

Adding cup support for primality checking of numbers

ecyrbe commented 1 year ago

Hello, thank you for the interest in HOTScript, However prime numbers utiles is a really narrow use case and does not fit the purpose of this library. Indeed, it's not a collection of niche algorithms, but a collection of primitive building blocks to allow tout and everyone else to build complex algorithms on top of it. You can then publish your prime algorithm in a library depending on HOTScript.