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 07:40olliecrowolliecrowScore: 147,336Success
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 07:41146,645148,313,280125,047,0004,001,0002,404,352stderr
2Apr 24, 2026 07:41146,964143,321,965123,314,0006,015,0002,408,448stderr
3Apr 24, 2026 07:41147,121145,600,376123,446,0006,021,0002,400,256stderr
4Apr 24, 2026 07:41147,207143,084,741122,514,0007,029,0002,408,448stderr
5Apr 24, 2026 07:41147,336145,829,796125,636,0004,020,0002,355,200stderr
6Apr 24, 2026 07:41147,389147,844,141124,676,0005,027,0002,347,008stderr
7Apr 24, 2026 07:41147,440145,767,240125,725,0004,023,0002,396,160stderr
8Apr 24, 2026 07:41147,571150,126,270124,869,0004,994,0002,445,312stderr
9Apr 24, 2026 07:41148,104145,607,942125,320,0005,012,0002,359,296stderr