Skip to content

OoiHS/Math-Algorithms-Cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Math Algorithms C++

All generic math algorithms in C++11 Standard Library

Prime Factor

Requirement:
C++11 Standard Library
||||| Prime Number

Determine the Prime Factor of a given Number.

Given: n = Magnitude of Input Number
Time Complexity : O((n/4) + sqrt(n))
Space Complexity: O(1)

Prime Number

Requirement:
C++11 Standard Library

Determine if an input number is Prime.

Given: n = Magnitude of Input Number
Time Complexity : O(sqrt(n)/2)
Space Complexity: O(1)

About

All generic math algorithms in C++ Standard Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages