Username: 
Password: 
Restrict session to IP 

answer is wrong?  Go to the Prime Factory challenge

Global Rank: 12623
Totalscore: 257
Posts: 1
Thanks: 1
UpVotes: 1
Registered: 2y 47d
Last Seen: 135d 11h
The User is Offline
answer is wrong?
Google/translate1Thank You!1Good Post!0Bad Post! link
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: 13652
Totalscore: 164
Posts: 1
Thanks: 1
UpVotes: 1
Registered: 1y 34d
Last Seen: 256d 43m
The User is Offline
RE: answer is wrong?
Google/translate1Thank You!1Good Post!0Bad Post! link
which is a prime whose digit sum 1+3=4 is not prime
Global Rank: 187
Totalscore: 110533
Posts: 88
Thanks: 78
UpVotes: 91
Registered: 9y 257d
کا اوتار	occasus



Last Seen: 38d 13h
The User is Offline
RE: answer is wrong?
Google/translate1Thank You!1Good Post!0Bad Post! link
سے اقتباس mingxuan
اپریل 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...

GeSHi`ed Plaintext کوڈ
1
2
1000003 -> is prime
1000033 -> is prime


سے اقتباس ianpim
اپریل 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:
GeSHi`ed Plaintext کوڈ
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/]
Last edited by occasus - مئِ 06, 2023 - 15:13:03
Global Rank: 6433
Totalscore: 1902
Posts: 1
Thanks: 0
UpVotes: 0
Registered: 329d 21h
Last Seen: 235d 7h
The User is Offline
RE: answer is wrong?
Google/translate0Thank You!0Good Post!0Bad Post! link
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.
Global Rank: 254
Totalscore: 87264
Posts: 1642
Thanks: 1341
UpVotes: 888
Registered: 16y 103d




Last Seen: 1d 13h
The User is Offline
RE: answer is wrong?
Google/translate1Thank You!1Good Post!0Bad Post! link
You need the first two numbers. there are numbers earlier
The geeks shall inherit the properties and methods of object earth.
Redknee, runner, tunelko, silenttrack, n0tHappy, quangntenemy, TheHiveMind, Z, balicocat, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, SwolloW, dangarbri, kalungmas have subscribed to this thread and receive emails on new posts.
1 people are watching the thread at the moment.
This thread has been viewed 2569 times.