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 19, 2024 19:54Andrey LikhachevAndrey LikhachevScore: 35,115Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 19, 2024 19:5435,09357,893,47829,886,000996,0002,363,392
2Sep 19, 2024 19:5435,10360,735,51528,898,0001,993,0002,367,488
3Sep 19, 2024 19:5435,10557,252,01028,899,0001,993,0002,293,760
4Sep 19, 2024 19:5435,11462,214,05529,904,000996,0002,367,488
5Sep 19, 2024 19:5435,11558,793,11528,908,0001,993,0002,293,760
6Sep 19, 2024 19:5435,12059,541,90529,876,0001,030,0002,293,760
7Sep 19, 2024 19:5435,13156,110,26429,918,000997,0002,293,760
8Sep 19, 2024 19:5435,14159,932,83829,927,000997,0002,359,296
9Sep 19, 2024 19:5435,19857,871,35028,976,0001,998,0002,367,488