Cody

Problem 659. How long is the longest prime diagonal?

Solution 669860

Submitted on 13 May 2015 by Jonathan Campelli
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% n = 4; d = 2; %p = isprime(spiral(n));imagesc(p) assert(isequal(prime_spiral(n),d))

lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 2 maximum = 0 1 0 2 lgt = 1 1 maximum = 0 1 0 2 1 lgt = 1 maximum = 0 1 0 2 1 1 lgt = 2 maximum = 0 1 0 2 1 1 2 lgt = 1 maximum = 0 1 0 2 1 1 2 1 lgt = 1 maximum = 0 1 0 2 1 1 2 1 1 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 1 0 2 1 1 2 1 1 0 1 ans = 2

2   Pass
%% n = 7; d = 4; assert(isequal(prime_spiral(n),d))

lgt = 1 maximum = 1 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 1 0 1 lgt = Empty matrix: 1-by-0 lgt = 3 maximum = 1 0 1 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 1 3 maximum = 1 0 1 0 3 0 3 lgt = 1 1 maximum = 1 0 1 0 3 0 3 1 lgt = 1 2 maximum = 1 0 1 0 3 0 3 1 2 lgt = 2 maximum = 1 0 1 0 3 0 3 1 2 2 lgt = 1 maximum = 1 0 1 0 3 0 3 1 2 2 1 lgt = 2 maximum = 1 0 1 0 3 0 3 1 2 2 1 2 lgt = 1 maximum = 1 0 1 0 3 0 3 1 2 2 1 2 1 lgt = 3 maximum = 1 0 1 0 3 0 3 1 2 2 1 2 1 3 lgt = Empty matrix: 1-by-0 lgt = 4 maximum = 1 0 1 0 3 0 3 1 2 2 1 2 1 3 0 4 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 1 0 1 0 3 0 3 1 2 2 1 2 1 3 0 4 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 1 0 1 0 3 0 3 1 2 2 1 2 1 3 0 4 0 1 0 1 ans = 4

3   Pass
%% n = 13; d = 5; assert(isequal(prime_spiral(n),d))

lgt = Empty matrix: 1-by-0 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 0 1 lgt = Empty matrix: 1-by-0 lgt = 2 maximum = 0 0 1 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 2 2 maximum = 0 0 1 0 2 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 maximum = 0 0 1 0 2 0 2 0 1 lgt = Empty matrix: 1-by-0 lgt = 5 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 lgt = Empty matrix: 1-by-0 lgt = 1 2 1 3 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 lgt = 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 lgt = 1 1 2 2 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 lgt = 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 lgt = 1 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 lgt = 1 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 lgt = 1 1 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 lgt = 1 2 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 lgt = 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 lgt = 3 2 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 lgt = 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 lgt = 1 2 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 2 lgt = 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 2 1 lgt = 3 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 2 1 3 lgt = Empty matrix: 1-by-0 lgt = 1 5 2 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 2 1 3 0 5 lgt = Empty matrix: 1-by-0 lgt = 1 1 maximum = 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 2 1 3 0 5 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 4 maximum = Columns 1 through 30 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 2 1 3 0 5 0 1 Columns 31 through 32 0 4 lgt = Empty matrix: 1-by-0 lgt = 3 maximum = Columns 1 through 30 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 2 1 3 0 5 0 1 Columns 31 through 34 0 4 0 3 lgt = Empty matrix: 1-by-0 lgt = Empty matrix: 1-by-0 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = Columns 1 through 30 0 0 1 0 2 0 2 0 1 0 5 0 3 1 2 1 1 1 1 2 1 3 1 2 1 3 0 5 0 1 Columns 31 through 38 0 4 0 3 0 0 0 1 ans = 5

4   Pass
%% n = 52; d = 6; assert(isequal(prime_spiral(n),d))

lgt = Empty matrix: 1-by-0 lgt = Empty matrix: 1-by-0 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 0 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 0 0 1 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 0 0 1 0 1 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 1 maximum = 0 0 0 1 0 1 0 1 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 3 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 lgt = Empty matrix: 1-by-0 lgt = 2 2 1 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 lgt = Empty matrix: 1-by-0 lgt = 2 3 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 2 2 2 1 1 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 3 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 2 1 1 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 2 1 1 1 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 3 1 maximum = 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 lgt = Empty matrix: 1-by-0 lgt = 3 2 1 1 1 2 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 32 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 2 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 34 0 3 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 3 3 2 3 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 36 0 3 0 2 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 38 0 3 0 2 0 3 0 1 lgt = Empty matrix: 1-by-0 lgt = 2 2 1 1 2 1 2 2 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 40 0 3 0 2 0 3 0 1 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 3 2 1 2 2 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 42 0 3 0 2 0 3 0 1 0 2 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 2 2 1 1 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 44 0 3 0 2 0 3 0 1 0 2 0 3 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 1 2 2 1 1 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 46 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 1 1 1 1 1 2 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 48 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 lgt = Empty matrix: 1-by-0 lgt = 4 1 4 1 1 5 1 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 50 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 0 5 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 2 2 1 3 2 1 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 52 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 0 5 0 3 lgt = 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 53 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 0 5 0 3 1 lgt = 1 1 1 1 2 4 2 1 1 2 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 54 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 0 5 0 3 1 4 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 2 1 1 1 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 56 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 0 5 0 3 1 4 0 2 lgt = 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 57 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 0 5 0 3 1 4 0 2 1 lgt = 1 1 1 2 2 1 1 1 1 2 1 1 1 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 58 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 0 5 0 3 1 4 0 2 1 2 lgt = 2 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 59 0 3 0 2 0 3 0 1 0 2 0 3 0 2 0 2 0 2 0 5 0 3 1 4 0 2 1 2 2 lgt = 1 1 1 1 1 1 1 2 1 maximum = Columns 1 through 30 0 0 0 1 0 1 0 1 0 1 0 3 0 1 0 2 0 1 0 3 0 2 0 3 0 2 0 2 0 3 Columns 31 through 60 0 3 0 2 0 3 0 1 0 2 0 3 0 2 ...

5   Pass
%% n = 81; d = 9; assert(isequal(prime_spiral(n),d))

lgt = Empty matrix: 1-by-0 lgt = Empty matrix: 1-by-0 lgt = Empty matrix: 1-by-0 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 0 0 0 1 lgt = Empty matrix: 1-by-0 lgt = 3 maximum = 0 0 0 0 1 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 maximum = 0 0 0 0 1 0 3 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 lgt = Empty matrix: 1-by-0 lgt = 3 1 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 lgt = Empty matrix: 1-by-0 lgt = 2 1 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 lgt = Empty matrix: 1-by-0 lgt = 2 2 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 1 2 1 1 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 2 1 maximum = 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 3 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Column 31 3 lgt = Empty matrix: 1-by-0 lgt = 2 1 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 33 3 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 2 4 1 2 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 35 3 0 2 0 4 lgt = Empty matrix: 1-by-0 lgt = 1 1 2 2 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 37 3 0 2 0 4 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 39 3 0 2 0 4 0 2 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 3 7 7 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 41 3 0 2 0 4 0 2 0 1 0 7 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 43 3 0 2 0 4 0 2 0 1 0 7 0 1 lgt = Empty matrix: 1-by-0 lgt = 1 2 2 1 1 1 1 2 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 45 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 2 1 2 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 47 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 lgt = Empty matrix: 1-by-0 lgt = 4 2 1 1 2 3 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 49 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 0 4 lgt = Empty matrix: 1-by-0 lgt = 2 2 1 2 1 1 2 2 2 1 1 1 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 51 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 0 4 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 3 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 53 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 0 4 0 2 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 1 1 1 1 2 1 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 55 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 0 4 0 2 0 3 0 2 lgt = Empty matrix: 1-by-0 lgt = 2 1 1 1 1 2 1 1 1 2 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 57 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 0 4 0 2 0 3 0 2 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 3 1 1 2 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 59 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 0 4 0 2 0 3 0 2 0 2 0 3 lgt = Empty matrix: 1-by-0 lgt = 1 4 3 2 1 1 1 2 1 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 60 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 0 4 0 2 0 3 0 2 0 2 0 3 0 Column 61 4 lgt = Empty matrix: 1-by-0 lgt = 2 1 1 1 1 1 2 1 1 1 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 60 3 0 2 0 4 0 2 0 1 0 7 0 1 0 2 0 2 0 4 0 2 0 3 0 2 0 2 0 3 0 Columns 61 through 63 4 0 2 lgt = Empty matrix: 1-by-0 lgt = 1 1 1 1 1 3 3 2 3 1 2 1 2 1 maximum = Columns 1 through 30 0 0 0 0 1 0 3 0 1 0 1 0 3 0 1 0 1 0 2 0 1 0 2 0 1 0 2 0 2 0 Columns 31 through 60 3 0 2 0 4 ...

Suggested Problems

More from this Author50

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!