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:56parsersmailparsersmailScore: 12,590,027Success
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:5612,565,40811,171,438,87411,057,558,69002,211,840
2Aug 11, 2023 09:5612,590,02711,139,792,65311,079,224,17502,236,416
3Aug 11, 2023 09:5612,629,55111,177,895,78311,114,004,86202,224,128