PINE LIBRARY

Primes_2

51
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_2"
Prime Numbers 340.007 - 712.981

primes_a()
  Prime numbers 340.007 - 441.971

primes_b()
  Prime numbers 442.003 - 545.959

primes_c()
  Prime numbers 546.001 - 650.987

primes_d()
  Prime numbers 651.017 - 712.981

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.