PINE LIBRARY

Primes_4

103
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 this 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_4"
Prime Numbers 1.096.031 - 1.340.011

primes_a()
  Prime numbers 1.096.031 - 1.205.999

primes_b()
  Prime numbers 1.206.013 - 1.317.989

primes_c()
  Prime numbers 1.318.003 - 1.340.011

method restoreValues(iArray, iShow, iFrom, iTo)
  restoreValues : Restores reduced prime number values in an array to their original state, for example `7001, 13, 19, 27, 39, 43, 57, 69, 79, 7103, 9, 21` is restored to `7001, 7013, 7019, 7027, 7039, 7043, 7057, 7069, 7079, 7103, 7109, 7021`
  Namespace types: array<int>
  Parameters:
    iArray (array<int>)
    iShow (bool)
    iFrom (int)
    iTo (int)
  Returns: Initial array with restored prime number values

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.