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 listApr 24, 2026 22:31Charles CabergsCharles CabergsScore: 24,119Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 22:3224,03139,706,77620,141,0001,007,0002,445,312
2Apr 24, 2026 22:3224,03540,106,08019,137,0002,014,0002,355,200
3Apr 24, 2026 22:3224,05936,984,63719,156,0002,016,0002,449,408
4Apr 24, 2026 22:3224,06139,137,85319,158,0002,016,0002,449,408
5Apr 24, 2026 22:3224,11935,358,12720,215,0001,010,0002,461,696
6Apr 24, 2026 22:3224,15640,203,69020,246,0001,012,0002,453,504
7Apr 24, 2026 22:3224,17842,193,82620,264,0001,013,0002,539,520
8Apr 24, 2026 22:3224,21337,908,47020,294,0001,014,0002,457,600
9Apr 24, 2026 22:3224,35043,878,84420,408,0001,020,0002,445,312