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 listSep 3, 2024 16:35AnSaAnSaScore: 206,728Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2024 16:35206,297208,840,712181,541,00002,269,184
2Sep 3, 2024 16:35206,728205,468,869179,922,0001,999,0002,273,280
3Sep 3, 2024 16:35206,899213,675,823181,071,0001,000,0002,260,992