Global Rank: 12568
Totalscore: 255
Postitused: 1
Aitäh: 1
Üleshääled: 1
Registreeritud: 2y 18d
Kasutaja on hetkel väljas
I use python to run prime number program ,Get answer is 1000003 and 1000033,But system tell me answer is wrong,1000003 is not prime number?
I need some help...
Global Rank: 13600
Totalscore: 163
Postitused: 1
Aitäh: 1
Üleshääled: 1
Registreeritud: 1y 5d
Kasutaja on hetkel väljas
which is a prime whose digit sum 1+3=4 is not prime
Quote from mingxuanAprill 27, 2023 - 07:52:43
I use python to run prime number program ,Get answer is 1000003 and 1000033,But system tell me answer is wrong,1000003 is not prime number?
I need some help...
1
2
| 1000003 -> is prime
1000033 -> is prime |
Quote from ianpimAprill 27, 2023 - 08:58:47
which is a prime whose digit sum 1+3=4 is not prime
Afaik 1 is not a prime number; these begin with 2. Which is
not prime? 13 for example:
1
2
| 13 is prime
1+3 = 4 not prime |
Maybe you wanted to know "
whose digits sum IS prime". For that here a good example (
at least I hope):
https://www.geeksforgeeks.org/count-all-prime-numbers-in-a-given-range-whose-sum-of-digits-is-also-prime/]
Global Rank: 6413
Totalscore: 1902
Postitused: 1
Aitäh: 0
Üleshääled: 0
Registreeritud: 301d 12h
Kasutaja on hetkel väljas
I have a same problem but with different numbers.
My numbers are:
1000253 is prime => 1+2+5+3 = 11 is also prime
2000003 is prime => 2+3 = 5 is also prime
My solution is 10002532000003, and my answer is still wrong.
You need the first two numbers. there are numbers earlier
The geeks shall inherit the properties and methods of object earth.