You are not logged in. Please login at www.codechef.com to post your questions!

×

Prime Palindrome HELP WRONG ASNWER

I really don't understand why my answer is wrong, it works just fine for me. Could someone please help?

http://www.codechef.com/viewsolution/3900410

asked 12 May '14, 17:45

tyrthor's gravatar image

0★tyrthor
5210
accept rate: 0%


Your code doesn't print anything for N = 1000000.

link

answered 12 May '14, 17:56

junior94's gravatar image

4★junior94
3.2k143058
accept rate: 15%

The constraint is 1 ≤ N ≤ 1000000 but u r not considering the case where N = 1000000....

link

answered 12 May '14, 20:02

raul1rnjn535_3's gravatar image

2★raul1rnjn535_3
2241411
accept rate: 11%

The constraint is on the input that input is N<=1000000 , not the answer . Answer can be greater than 1000000 .

link

answered 12 May '14, 20:11

the65bit's gravatar image

4★the65bit
1.1k101328
accept rate: 13%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×3,707
×1,901
×194

question asked: 12 May '14, 17:45

question was seen: 645 times

last updated: 12 May '14, 20:11