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 20, 2026 15:16BenBenScore: 129,392Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 15:20128,978135,642,135110,488,0003,013,0002,441,216
2Apr 20, 2026 15:20129,061138,436,986110,559,0003,015,0002,437,120
3Apr 20, 2026 15:20129,155136,632,595110,640,0003,017,0002,449,408
4Apr 20, 2026 15:20129,377136,172,365109,858,0003,994,0002,314,240
5Apr 20, 2026 15:20129,392139,587,082109,870,0003,995,0002,437,120
6Apr 20, 2026 15:20129,580139,518,544110,030,0004,001,0002,445,312
7Apr 20, 2026 15:20129,663138,628,171110,101,0004,003,0002,486,272
8Apr 20, 2026 15:20130,114132,413,902112,493,0002,008,0002,281,472
9Apr 20, 2026 15:20130,478139,495,138110,828,0003,993,0002,445,312