# Q# factorization Method Program

Is there a method to calculate prime factorization in Q# of Visual Studio of Microsoft Quantum Development Kit?

In the Python language, it is the sympy.factorint method.

Or else is there any Q# sample program?

It is like Shor's algorithm calling Q# from C#.

## 1 Answer

Integer factorization sample in the official Quantum Development Kit samples repository implements Shor's algorithm in Q# and shows how to call it from C#.