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 18:07Joad 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 18:0600000Error: expected "51461199139286 ", got "51462258128517 "
2Apr 22, 2024 18:07210,149246,931,728184,930,96802,265,088
3Apr 22, 2024 18:07210,447243,988,241185,193,64502,260,992
4Apr 22, 2024 18:07210,785242,284,648185,491,09502,256,896