Paso 2: Ajuste el código de
#define STARTNUMBER 10 #define DELAYFACTOR 100 #include #include unsigned long candidate = STARTNUMBER; unsigned long divisor = 2; bool isPrime = true; unsigned long time = millis(); unsigned long counter = 0; void loop() { start: if(Serial.available()){candidate=(Serial.parseInt());} isPrime = true; divisor=2; for(divisor;divisor You now know the basic algorithm, time to tweak it a little... or not... One thing you might want to change is STARTNUMBER parameter - set ti to something high but number must not exceed 2**32 as this is technical limitation to what LinkIt ONE can perform operations on. The other thing is that you might want to increase delay time from 10 minutes to something more - 5 hours for example. That will make SMS' come up to four times a day on peaks and there will be periods of time when you won't get any SMS' for days.