Reply To: Programming
A Tale of 2 Secrets › Forums › T.E.M.P.E.S.T. › Programming › Reply To: Programming
@F6EXB_the_frenchy
Your first code ran ok for me when I entered 100 for loops (why do you need so many?)
and gave the correct answer (an integer)
I do not use Python much myself, PARI gp calculator is easier and usually needs less code
Prematurely:
I will put my code up now with its output – sorry if it spoils it for others but they can still offer
their take on some code and can now check if it gives correct answer before posting
\\ GP/PARI CALCULATOR Version 2.13.3
c=0;for(i=1,100,if(i%3==0||i%4==0||i%7==0,c++;print1(” “i)));print(“\n”100-c”%”);
3 4 6 7 8 9 12 14 15 16 18 20 21 24 27 28 30 32 33 35 36 39 40 42 44 45 48 49 51 52 54 56 57 60 63 64 66 68 69 70 72 75 76 77 78 80 81 84 87 88 90 91 92 93 96 98 99 100
42%