p = f5 % 1000000000
if p > 100000000 and is_prime(p):
correct:
p = f5 % 1000000000
if f5 > 1000000000 and is_prime(p):
This point is not reflected in the condition of the problem :(
It should be explicitly stated that the last 9 digits can contain leading zeros, but the number itself must be at least 9 digits
11bqr
nice solution
i do not understand it
I like it!
Yeah
Am I correct in saying that this wouldn't work if there were opening parentheses without closing parentheses to match it?
Ok. Thanks for pointing out this observation. Tomorrow I'll be checking it. I'm traveling.
wrong:
correct:
This point is not reflected in the condition of the problem :(
It should be explicitly stated that the last 9 digits can contain leading zeros, but the number itself must be at least 9 digits
if they check only 9-digit prime, I successfully perform 11 tests (up to n = 20)
if I check 8-digit and 9-digit prime, I successfully complete 21 tests (up to n = 100)
If I check 7-digit prime also, then I do not carry out any successful test
Is there something missing in the problem statement? Or is the prime test wrong?
As well as 890, i believe.
I didn't know it was just American, I thought it was the norm in all English language (eg. it's used in all English Wikipedia).
Period inside quotes is a rule in American grammar. Believe this or not, Americans consider this notation "normal."
If no arguments are given, ball objects should instantiate with a "ball type" of "regular."
->
If no arguments are given, ball objects should instantiate with a "ball type" of "regular".
"regular" INSTEAD "regular."
1 = 89,
2 = 271,
3 = 325,
4 = 328,
5 = 1025,
6 = 1055,
7 = 1081,
8 = 1129,
9 = 1169
but in the test sq_cub_rev_prime(9) = 1129, why?
1025, 1055, 1081 also have the required properties
Hi,
next time, don't post the solution to the hard version in the easy one, thx.