Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listAug 2, 2022 17:39Robert BurkeRobert BurkeScore: 36,491Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2022 17:3936,09960,297,26230,743,0001,024,0002,387,968
2Aug 2, 2022 17:3936,25061,175,74629,907,0001,993,0002,281,472
3Aug 2, 2022 17:3936,27452,727,90829,926,0001,995,0002,281,472
4Aug 2, 2022 17:3936,36952,742,65531,005,0001,000,0002,281,472
5Aug 2, 2022 17:3936,40165,727,31330,031,0002,002,0002,281,472
6Aug 2, 2022 17:3936,46453,492,63930,083,0002,005,0002,387,968
7Aug 2, 2022 17:3936,49152,992,09931,109,0001,003,0002,396,160
8Aug 2, 2022 17:3936,51549,799,48331,129,0001,004,0002,281,472
9Aug 2, 2022 17:3936,57092,779,54632,181,96302,232,320
10Aug 2, 2022 17:3936,60995,308,11132,215,54802,236,416
11Aug 2, 2022 17:3936,621114,034,06332,226,33702,240,512
12Aug 2, 2022 17:3936,63154,168,22130,221,0002,014,0002,281,472