Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-) )
n = 8
x = 1 (00000001)
n-bit binary inverted x = 254 (11111110)
then y = 255
Who Has the Most Change?
The Goldbach Conjecture, Part 2
Element by element multiplication of two vectors
Reverse a string
sum of ASCII
Remove multiples of N
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office