Menu

New snippet and some bug fixes in the Code Snippets Database

A alternative version of the IsPrime function, named IsPrime2, has been added to the Code Snippets database. This routine is shorter than IsPrime and does not use any floating point arithmetic. Also the GCD and LCD have had bugs fixed to ensure that they always return positive results, even after passing them negative parameters. Finally the test status of IsPrime, IsPrime2 and LCD has been increaed now they have passed unit tests.
link

Posted by SourceForge Robot 2013-04-19

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.