Cody

# Problem 42653. Generate the sum of Squares of the given number

Solution 769620

Submitted on 31 Oct 2015 by per isakson
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
%% x = 1; y_correct = 1; assert(isequal(sumofsquares(x),y_correct))

2   Pass
%% x = 2; y_correct = 5; assert(isequal(sumofsquares(x),y_correct))

3   Pass
%% x = 3; y_correct = 14; assert(isequal(sumofsquares(x),y_correct))

4   Pass
%% x = 4; y_correct = 30; assert(isequal(sumofsquares(x),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.55385345,"math_prob":0.9996686,"size":683,"snap":"2020-10-2020-16","text_gpt3_token_len":201,"char_repetition_ratio":0.15316643,"word_repetition_ratio":0.0,"special_character_ratio":0.32064423,"punctuation_ratio":0.12698413,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9984981,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-22T07:06:27Z\",\"WARC-Record-ID\":\"<urn:uuid:8470fa17-2ae1-4986-a736-5e45cf394535>\",\"Content-Length\":\"73044\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d4de4110-bc67-4c26-960c-40573aa8f57d>\",\"WARC-Concurrent-To\":\"<urn:uuid:b7f57d41-7e0a-4eda-a6af-363a5bd813ed>\",\"WARC-IP-Address\":\"104.96.217.125\",\"WARC-Target-URI\":\"https://jp.mathworks.com/matlabcentral/cody/problems/42653-generate-the-sum-of-squares-of-the-given-number/solutions/769620\",\"WARC-Payload-Digest\":\"sha1:L2WHKDDDHQLN34QYDMYGBKWLJNQH3CUP\",\"WARC-Block-Digest\":\"sha1:T2TCSSV4TUOLX6ZWA6VXZEWG6UCJTTB4\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875145654.0_warc_CC-MAIN-20200222054424-20200222084424-00031.warc.gz\"}"}