photo

Saviyo Therattil


Last seen: bijna 2 jaar ago Active since 2020

Followers: 0   Following: 0

Statistics

All
  • Community Group Solver
  • Solver

View badges

Feeds

View by

Question


Swap the First and Last Column (CODY)
function B = swap_ends(A) X = A(:,end); C = A(:,1); A(:,1) = X; A(:,end) = C; B = A; end How do I reduce it int...

ongeveer 3 jaar ago | 1 answer | 0

1

answer

Question


How do I find the nearest prime number greater than the input? This is what I've managed to do so far...
function out = next_prime(X) out = 0; n = 0; while out == isprime(X) n = n + 1; out = out + n + X; ...

meer dan 3 jaar ago | 1 answer | 0

1

answer