Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\math\prime_numbers.c Create Date:2022-07-28 06:43:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:slow_is_prime_number

Proto:static bool slow_is_prime_number(unsigned long x)

Type:bool

Parameter:

TypeParameterName
unsigned longx
71  y = _sqrt - computes the integer square root*@x: integer of which to calculate the sqrt* Computes: floor(sqrt(x))
73  When y > 1 cycle
74  If x % y == 0 Then Break
76  y--
79  Return y == 1
Caller
NameDescribe
slow_next_prime_number
is_prime_numbers_prime_number - test whether the given number is prime*@x: the number to test* A prime number is an integer greater than 1 that is only divisible by* itself and 1
selftest