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 08:54parsersmailparsersmailScore: 12,621,959Success
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 08:5412,562,63411,120,515,92911,055,117,52002,265,088
2Aug 11, 2023 08:5412,621,95911,171,671,98711,107,323,89202,232,320
3Aug 11, 2023 08:5412,644,04911,281,617,51211,126,763,40702,220,032