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 listFeb 19, 2024 13:16Huy Duc LeHuy Duc LeError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2024 14:0400000Error: expected "51328619234463 ", got "51329585235344 "
2Feb 19, 2024 14:0500000Error: expected "51363771442965 ", got "51365097868486 "
3Feb 19, 2024 13:1633,17796,467,50429,196,14902,224,128
4Feb 19, 2024 13:1633,211102,426,52829,225,29702,215,936
5Feb 19, 2024 13:1633,218105,182,78029,231,95802,211,840