i have constants that represents a prime number. for example,
enum Signals : long
{
LONGPULLBACK = 2,
SHORTPULLBACK = 3,
RSIOVERSOLD = 5,
RSIOVERBOUGHT = 7,
BOUGHTSIGNAL = 9,
DOUBLEBOUGHTSIGNAL = 11,
SOLDSIGNAL = 13,
DOUBLESOLDSIGNAL = 17,
MATRENDINGLONG = 19,
MATRADENINGSHORT = 23
}
for every signal triggered, i just add it to the sum. there will always be only 1 signal of each type triggered. when i have a sum of 25, is there a function to return the prime number parts of the sum ie 2,23?