Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 719 Bytes

File metadata and controls

14 lines (9 loc) · 719 Bytes

宇宙终极问题

42

Google 一下就好了~

Everything

还是 Google 一下就找到了.

Last Question

An integer greater than one can be written as a sum of two squares if and only if its prime decomposition contains no prime congruent to 3 modulo 4 raised to an odd power.

根据 Brahmagupta–Fibonacci identity, 先试图分解给定整数, 直到满足条件.

再利用 Gaussian GCD 计算每个质数的分解.