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 listJan 18, 2026 01:54Josu San MartinJosu San MartinScore: 20,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 01:5419,83139,054,73416,425,0001,026,0002,523,136
2Jan 18, 2026 01:5419,99437,333,83616,560,0001,035,0002,514,944
3Jan 18, 2026 01:5420,02233,404,51916,583,0001,036,0002,424,832
4Jan 18, 2026 01:5420,02838,971,97117,625,00002,437,120
5Jan 18, 2026 01:5420,05544,457,70015,572,0002,076,0002,445,312
6Jan 18, 2026 01:5420,10845,647,45416,655,0001,040,0002,359,296