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 18, 2024 17:37Andrey LikhachevAndrey LikhachevScore: 48,375Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2024 17:3748,15568,016,50042,376,00002,371,584
2Sep 18, 2024 17:3748,23263,557,81442,444,00002,289,664
3Sep 18, 2024 17:3748,25665,033,28241,454,0001,011,0002,469,888
4Sep 18, 2024 17:3748,36563,604,97942,561,00002,375,680
5Sep 18, 2024 17:3748,37566,150,67941,557,0001,013,0002,375,680
6Sep 18, 2024 17:3748,38167,281,88242,575,00002,371,584
7Sep 18, 2024 17:3748,38563,623,58241,566,0001,013,0002,375,680
8Sep 18, 2024 17:3748,41866,873,22141,594,0001,014,0002,289,664
9Sep 18, 2024 17:3748,42769,663,72842,616,00002,371,584