<divclass="center"><iframescrolling="no"frameborder="0"src="../../d4/d89/problem__23_2sol1_8c__incl.svg"width="243"height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<trclass="memitem:a1aca7f530f82b27100262adba9e7556b"><tdclass="memItemLeft"align="right"valign="top">char </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d7/ddb/problem__23_2sol1_8c.html#a1aca7f530f82b27100262adba9e7556b">get_perfect_number</a> (unsigned long N)</td></tr>
<trclass="memdesc:a1aca7f530f82b27100262adba9e7556b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns: -1 if N is deficient 1 if N is abundant 0 if N is perfect. <ahref="../../d7/ddb/problem__23_2sol1_8c.html#a1aca7f530f82b27100262adba9e7556b">More...</a><br/></td></tr>
<trclass="memitem:a4f128410e6582fe26488e2316cc96e17"><tdclass="memItemLeft"align="right"valign="top">unsigned long </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d7/ddb/problem__23_2sol1_8c.html#a4f128410e6582fe26488e2316cc96e17">is_abundant</a> (unsigned long N)</td></tr>
<trclass="memdesc:a4f128410e6582fe26488e2316cc96e17"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Is the given number an abundant number (1) or not (0) <ahref="../../d7/ddb/problem__23_2sol1_8c.html#a4f128410e6582fe26488e2316cc96e17">More...</a><br/></td></tr>
<trclass="memitem:ac5d600bf3077f4188afc4c5cd2c40eaf"><tdclass="memItemLeft"align="right"valign="top">unsigned long </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d7/ddb/problem__23_2sol1_8c.html#ac5d600bf3077f4188afc4c5cd2c40eaf">get_next_abundant</a> (unsigned long N)</td></tr>
<trclass="memdesc:ac5d600bf3077f4188afc4c5cd2c40eaf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Find the next abundant number after N and not including N. <ahref="../../d7/ddb/problem__23_2sol1_8c.html#ac5d600bf3077f4188afc4c5cd2c40eaf">More...</a><br/></td></tr>
<trclass="memitem:a3ab61b5a1c4f2288625d160aa0ea8478"><tdclass="memItemLeft"align="right"valign="top">char </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../d7/ddb/problem__23_2sol1_8c.html#a3ab61b5a1c4f2288625d160aa0ea8478">is_sum_of_abundant</a> (unsigned long N)</td></tr>
<trclass="memdesc:a3ab61b5a1c4f2288625d160aa0ea8478"><tdclass="mdescLeft"> </td><tdclass="mdescRight">check if a given number can be represented as a sum of two abundant numbers. <ahref="../../d7/ddb/problem__23_2sol1_8c.html#a3ab61b5a1c4f2288625d160aa0ea8478">More...</a><br/></td></tr>
<divclass="line"><aid="l00058"name="l00058"></a><spanclass="lineno"> 58</span><spanclass="keywordflow">for</span> (i = N + 1; !<aclass="code hl_function"href="../../d7/ddb/problem__23_2sol1_8c.html#a4f128410e6582fe26488e2316cc96e17">is_abundant</a>(i); i++)</div>
<divclass="ttc"id="aproblem__23_2sol1_8c_html_a4f128410e6582fe26488e2316cc96e17"><divclass="ttname"><ahref="../../d7/ddb/problem__23_2sol1_8c.html#a4f128410e6582fe26488e2316cc96e17">is_abundant</a></div><divclass="ttdeci">unsigned long is_abundant(unsigned long N)</div><divclass="ttdoc">Is the given number an abundant number (1) or not (0)</div><divclass="ttdef"><b>Definition:</b> sol1.c:47</div></div>
</div><!-- fragment --><divclass="dynheader">
Here is the call graph for this function:</div>
<divclass="dyncontent">
<divclass="center"><iframescrolling="no"frameborder="0"src="../../d7/ddb/problem__23_2sol1_8c_ac5d600bf3077f4188afc4c5cd2c40eaf_cgraph.svg"width="479"height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<divclass="line"><aid="l00021"name="l00021"></a><spanclass="lineno"> 21</span><spanclass="keywordtype">unsigned</span><spanclass="keywordtype">long</span> sum = 1;</div>
<divclass="line"><aid="l00022"name="l00022"></a><spanclass="lineno"> 22</span><spanclass="keywordtype">char</span> ret = 0;</div>
<divclass="line"><aid="l00024"name="l00024"></a><spanclass="lineno"> 24</span><spanclass="keywordflow">for</span> (<spanclass="keywordtype">unsigned</span><spanclass="keywordtype">long</span> i = 2; i * i <= N; i++)</div>
<divclass="ttc"id="aproblem__23_2sol1_8c_html_a1aca7f530f82b27100262adba9e7556b"><divclass="ttname"><ahref="../../d7/ddb/problem__23_2sol1_8c.html#a1aca7f530f82b27100262adba9e7556b">get_perfect_number</a></div><divclass="ttdeci">char get_perfect_number(unsigned long N)</div><divclass="ttdoc">Returns: -1 if N is deficient 1 if N is abundant 0 if N is perfect.</div><divclass="ttdef"><b>Definition:</b> sol1.c:19</div></div>
</div><!-- fragment --><divclass="dynheader">
Here is the call graph for this function:</div>
<divclass="dyncontent">
<divclass="center"><iframescrolling="no"frameborder="0"src="../../d7/ddb/problem__23_2sol1_8c_a4f128410e6582fe26488e2316cc96e17_cgraph.svg"width="295"height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<divclass="line"><aid="l00074"name="l00074"></a><spanclass="lineno"> 74</span><spanclass="comment"> * i + j = N where both i and j should be abundant</span></div>
<divclass="line"><aid="l00075"name="l00075"></a><spanclass="lineno"> 75</span><spanclass="comment"> * hence we can simply check for j = N - i as we loop through i</span></div>
<divclass="line"><aid="l00083"name="l00083"></a><spanclass="lineno"> 83</span> printf(<spanclass="stringliteral">"\t%4lu + %4lu = %4lu\n"</span>, i, N - i, N);</div>
<divclass="ttc"id="aproblem__23_2sol1_8c_html_ac5d600bf3077f4188afc4c5cd2c40eaf"><divclass="ttname"><ahref="../../d7/ddb/problem__23_2sol1_8c.html#ac5d600bf3077f4188afc4c5cd2c40eaf">get_next_abundant</a></div><divclass="ttdeci">unsigned long get_next_abundant(unsigned long N)</div><divclass="ttdoc">Find the next abundant number after N and not including N.</div><divclass="ttdef"><b>Definition:</b> sol1.c:55</div></div>
<divclass="center"><divclass="zoom"><iframescrolling="no"frameborder="0"src="../../d7/ddb/problem__23_2sol1_8c_a3ab61b5a1c4f2288625d160aa0ea8478_cgraph.svg"width="100%"height="300"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<divclass="line"><aid="l00096"name="l00096"></a><spanclass="lineno"> 96</span><spanclass="keywordtype">unsigned</span><spanclass="keywordtype">long</span> sum = 0;</div>
<divclass="line"><aid="l00106"name="l00106"></a><spanclass="lineno"> 106</span> printf(<spanclass="stringliteral">"Not using parallleization!\n"</span>);</div>
<divclass="line"><aid="l00133"name="l00133"></a><spanclass="lineno"> 133</span><spanclass="stringliteral">"Sum of numbers that cannot be represented as sum of two abundant "</span></div>
<divclass="ttc"id="aproblem__23_2sol1_8c_html_a3ab61b5a1c4f2288625d160aa0ea8478"><divclass="ttname"><ahref="../../d7/ddb/problem__23_2sol1_8c.html#a3ab61b5a1c4f2288625d160aa0ea8478">is_sum_of_abundant</a></div><divclass="ttdeci">char is_sum_of_abundant(unsigned long N)</div><divclass="ttdoc">check if a given number can be represented as a sum of two abundant numbers.</div><divclass="ttdef"><b>Definition:</b> sol1.c:71</div></div>
</div><!-- fragment --><divclass="dynheader">
Here is the call graph for this function:</div>
<divclass="dyncontent">
<divclass="center"><divclass="zoom"><iframescrolling="no"frameborder="0"src="../../d7/ddb/problem__23_2sol1_8c_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.svg"width="100%"height="300"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="../../doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.2 </li>