Give is the maximum prime number which can be fit into 8-bit Memory

Showing Answers 1 - 5 of 5 Answers

sridevi

  • Nov 18th, 2005
 

251

  Was this answer useful?  Yes

srikanta mallik

  • Feb 22nd, 2006
 

   Hi,

       8 bit means  ------ 0 to 7----power(2,7)=128

     then ans=127

  Was this answer useful?  Yes

Mainak Aich

  • Mar 1st, 2006
 

Srikanta,

I think u r wrong.For instance if we think about 2 bits then according to you it will be as follows

2 bit-- 0 to 1 so power(2,1)=2

so prime number is 1. But in 2 bit number we can represent upto 3(i.e 11).So the prime number for a 2 bit memory will be 2 not 1.

So it is wrong.The max. number of a n bit number is : power(2,n)-1.

So for 8 bit number it will be:power(2,8)-1=255

So the max. prime number in 8 bit memory will be 251.

  Was this answer useful?  Yes

Ravi

  • Apr 29th, 2006
 

Hi Guys:

Iam unable to follow ur discussion. why is it 251 and not 253. afterall we are finding the maximum (highest in value) prime number less than 255.

Please correct me if Iam wrong.

Thanks

  Was this answer useful?  Yes

Rajesh

  • Jun 16th, 2006
 

253 is not prime, it is divisible by 11 and 23. So the ans. is 251.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions