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 17, 2026 14:55Josu San MartinJosu San MartinScore: 35,116Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 14:5534,97452,981,73430,777,00002,449,408
2Jan 17, 2026 14:5534,98067,166,92330,782,00002,293,760
3Jan 17, 2026 14:5535,01353,863,76028,824,0001,987,0002,289,664
4Jan 17, 2026 14:5535,10853,967,70329,899,000996,0002,289,664
5Jan 17, 2026 14:5535,10953,272,40928,903,0001,993,0002,469,888
6Jan 17, 2026 14:5535,11355,098,43827,909,0002,990,0002,375,680
7Jan 17, 2026 14:5535,11660,288,13128,909,0001,993,0002,453,504
8Jan 17, 2026 14:5535,11857,102,79728,911,0001,993,0002,449,408
9Jan 17, 2026 14:5535,12457,240,01628,915,0001,994,0002,453,504
10Jan 17, 2026 14:5535,18152,778,07128,962,0001,997,0002,441,216
11Jan 17, 2026 14:5535,19352,270,11929,971,000999,0002,465,792
12Jan 17, 2026 14:5535,21155,729,76428,987,0001,999,0002,453,504