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 listDec 14, 2024 18:54MatthiasMatthiasScore: 27,172,298Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 18:5427,010,35223,841,807,85123,683,262,00085,848,0002,273,280
2Dec 14, 2024 18:5427,172,29823,979,652,64823,832,766,00078,856,0002,498,560
3Dec 14, 2024 18:5427,329,14724,123,040,79023,963,804,00085,845,0002,273,280