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:47Andrey LikhachevAndrey LikhachevScore: 47,136Success
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:4746,93567,050,71940,296,0001,007,0002,289,664
2Sep 18, 2024 17:4747,02561,342,37940,373,0001,009,0002,478,080
3Sep 18, 2024 17:4747,11166,932,77540,447,0001,011,0002,371,584
4Sep 18, 2024 17:4747,13064,665,00540,463,0001,011,0002,367,488
5Sep 18, 2024 17:4747,13671,572,08240,469,0001,011,0002,375,680
6Sep 18, 2024 17:4747,18166,641,62640,507,0001,012,0002,379,776
7Sep 18, 2024 17:4747,18863,218,38141,525,00002,375,680
8Sep 18, 2024 17:4747,32369,002,60939,661,0001,983,0002,289,664
9Sep 18, 2024 17:4747,38174,308,43140,679,0001,016,0002,371,584