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 listMar 4, 2024 04:31evgenikwtevgenikwtScore: 88,356Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 4, 2024 04:3388,180150,784,85777,598,77902,248,704
2Mar 4, 2024 04:3388,185131,822,51777,602,73302,244,608
3Mar 4, 2024 04:3188,266150,105,67277,673,89502,244,608
4Mar 4, 2024 04:3388,356134,869,62677,753,18702,240,512
5Mar 4, 2024 04:3188,462139,982,80877,846,34202,248,704
6Mar 4, 2024 04:3188,553144,903,32777,927,05902,240,512