Cody

Solution 1284164

Submitted on 10 Oct 2017 by Daniel Pereira
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
filetext = fileread('prime_time.m') assert(isempty(strfind(filetext, 'fopen')))

filetext = 'function x = prime_time(x) %This code written by profile_id 3246794 '

2   Pass
x=123 y = prime_time(x) a=clock b=floor(polyval(a(5:6),60)) if isprime(b) y_correct= y else y_correct = NaN; end assert(isequal(y,y_correct),sprintf('%s%g%s','Time is ',datestr(now,13),', or ',b,' seconds after the hour.'))

x = 123 y = 123 a = 1.0e+03 * 2.0170 0.0100 0.0100 0.0120 0.0560 0.0017 b = 3361 y_correct = 123