% for testing purposes it is convenient to generate
% large random integer values; without explaining 
% exactly what is going on, you can generate such
% numbers like so:
n = randi([2^50 2^53 - 1], 1);

% the easiest way to see all of the digits of n is to do the following:
num2str(n)


% to get the last digit, divide by 10 and find the remainder
lastDigit = rem(n, 10)
