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 listDec 28, 2022 02:41Robert BurkeRobert BurkeScore: 23,607Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 02:4123,15992,570,70420,379,49502,228,224
2Dec 28, 2022 02:4123,268114,598,24520,475,41302,228,224
3Dec 28, 2022 02:4123,38382,363,93620,576,61002,236,416
4Dec 28, 2022 02:4123,44138,284,71020,628,00002,396,160
5Dec 28, 2022 02:4123,50045,442,80919,646,0001,034,0002,273,280
6Dec 28, 2022 02:4123,52053,640,08320,698,00002,392,064
7Dec 28, 2022 02:4123,60748,638,56220,774,00002,387,968
8Dec 28, 2022 02:4123,62246,266,33220,787,00002,273,280
9Dec 28, 2022 02:4123,62352,100,03619,749,0001,039,0002,396,160
10Dec 28, 2022 02:4123,76546,700,34019,918,000995,0002,400,256
11Dec 28, 2022 02:4123,78445,810,95818,937,0001,993,0002,383,872
12Dec 28, 2022 02:4123,97039,723,90720,090,0001,004,0002,379,776