PINE LIBRARY

Primes_3

69
These libraries (Primes_1 -> Primes_4) contain arrays of reduced Prime Numbers to minimize the amount of tokens, allowing more information to be exported.

Values, for example:
Pine Script®
7001, 7013, 7019, 7027, 7039, 7043, 7057, 7069, 7079, 7103, 7109, 7021

are reduced to:
Pine Script®
7001, 13, 19, 27, 39, 43, 57, 69, 79, 7103, 9, 21


With the restoreValues() function found in the Primes_4 library, the reduced values can be restored back to its original state.
Pine Script®
7001, 13, 19, 27, 39, 43, 57, 69, 79, 7103, 9, 21

is restored back to:
Pine Script®
7001, 7013, 7019, 7027, 7039, 7043, 7057, 7069, 7079, 7103, 7109, 7021


The libraries contain all Prime Numbers from 2 to 1.340.011

------------------------------------------------------------

Library "Primes_3"
Prime Numbers 713.021 - 1.095.989

primes_a()
  Prime numbers 713.021 - 820.997

primes_b()
  Prime numbers 821.003 - 928.979

primes_c()
  Prime numbers 929.003 - 1.038.953

primes_d()
  Prime numbers 1.039.001 - 1.095.989

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.