TCS
Company
Logical Reasoning
Logical Sequences
What is the largest prime number that can be stored in an 8-bit memory?
Read Solution (Total 3)
-
- largest 8 bit memory - (11111111) = 255
255 is divided by 5 so this is not prime number
254 is divided by 2 so this is not prime number
253 divided by 11 so this is not prime number
252 divided by 2 so this is not prime number
so largest prime number is 251 - 13 years agoHelpfull: Yes(45) No(2)
- 8 bit = 1 byte
the valid number range for 1 byte memory is -128 to 127.
127 is a prime number and also the largest. - 13 years agoHelpfull: Yes(10) No(5)
- largest prime number that can be stored in 8 bit memory is 2^127
- 13 years agoHelpfull: Yes(1) No(10)
TCS Other Question