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 14, 2024 13:37Andrey LikhachevAndrey LikhachevError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 14, 2024 13:3700000Error: expected "51414486518247 ", got "51416385275500 "
2Aug 14, 2024 13:3700000Error: expected "51049987391199 ", got "51050410705336 "
3Sep 15, 2024 19:0500000Error: expected "50829095457872 ", got "50829265388421 "
4Aug 14, 2024 13:3768,729128,671,60960,481,77602,199,552
5Aug 14, 2024 13:3768,856124,798,84760,593,25302,203,648
6Aug 14, 2024 13:3769,118121,655,83460,824,22802,203,648