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 30, 2023 23:57Yurkov AlekseyYurkov AlekseyScore: 97,850Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2023 23:5797,766146,506,80686,034,37002,269,184
2Dec 30, 2023 23:5797,850146,827,03286,107,77302,273,280
3Dec 30, 2023 23:5798,811159,356,91386,953,65802,256,896