<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>
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. <br/></td></tr>
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) <br/></td></tr>
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. <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"><aname="l00074"></a><spanclass="lineno"> 74</span> <spanclass="comment"> * i + j = N where both i and j should be abundant</span></div>
<divclass="line"><aname="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"><aname="l00077"></a><spanclass="lineno"> 77</span> <spanclass="keywordflow">for</span> (<spanclass="keywordtype">unsigned</span><spanclass="keywordtype">long</span> i = <aclass="code"href="../../d7/ddb/problem__23_2sol1_8c.html#ac5d600bf3077f4188afc4c5cd2c40eaf">get_next_abundant</a>(1); i <= (N >> 1);</div>
<divclass="line"><aname="l00078"></a><spanclass="lineno"> 78</span>  i = <aclass="code"href="../../d7/ddb/problem__23_2sol1_8c.html#ac5d600bf3077f4188afc4c5cd2c40eaf">get_next_abundant</a>(i))</div>
<divclass="line"><aname="l00083"></a><spanclass="lineno"> 83</span>  printf(<spanclass="stringliteral">"\t%4lu + %4lu = %4lu\n"</span>, i, N - i, N);</div>
<divclass="center"><iframescrolling="no"frameborder="0"src="../../d7/ddb/problem__23_2sol1_8c_a3ab61b5a1c4f2288625d160aa0ea8478_cgraph.svg"width="659"height="63"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<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="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>
<liclass="footer">Generated by <ahref="http://www.doxygen.org/index.html"><imgclass="footer"src="../../doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.8.19 </li>