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 listMay 25, 2024 11:04Joad NacerJoad NacerScore: 51,372Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:0651,01896,923,36744,895,70102,228,224
2May 25, 2024 11:0451,079117,335,99044,949,39302,224,128
3May 25, 2024 11:0651,122110,471,78444,987,01402,232,320
4May 25, 2024 11:0451,372105,699,80845,207,14002,224,128
5May 25, 2024 11:0451,753103,032,35945,542,39202,236,416
6May 25, 2024 11:0651,920117,222,83245,689,95202,232,320