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 listApr 22, 2024 23:23Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 23:2300000Error: expected "51178857745351 ", got "51179035697324 "
2Apr 22, 2024 23:2356,473114,766,81349,696,61302,256,896
3Apr 22, 2024 23:2356,869106,638,56650,045,09802,256,896
4Apr 22, 2024 23:2356,881113,433,12650,055,04202,256,896