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 11, 2023 09:31parsersmailparsersmailScore: 12,585,975Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 11, 2023 09:3112,516,04011,071,164,42911,014,115,23202,224,128
2Aug 11, 2023 09:3112,585,97511,141,100,63111,075,658,30702,240,512
3Aug 11, 2023 09:3112,656,26911,200,138,88511,137,516,95302,224,128