Cody

# Problem 1204. Prime Time

Solution 241912

Submitted on 9 May 2013 by Binbin Qi
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 ans = prime_time(x) !echo "function assert(a,b)" > assert.m 1; end %This code written by profile_id 734801 ```

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 [Warning: Function /users/msssystem4/assert.m has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In prime_time at 2 In verifyCode>evaluateCode at 227 In verifyCode at 40 In fevalJSON at 14] y = 1 a = 1.0e+03 * 2.0130 0.0050 0.0090 0.0030 0.0120 0.0403 b = 760 ```