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 21, 2026 20:10Victor MerckléVictor MerckléScore: 23,560Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 20:1223,41739,095,75619,577,0001,030,0002,375,680
2Apr 21, 2026 20:1223,41940,066,39819,579,0001,030,0002,322,432
3Apr 21, 2026 20:1223,43239,478,71319,590,0001,031,0002,387,968
4Apr 21, 2026 20:1223,45636,616,19519,610,0001,032,0002,322,432
5Apr 21, 2026 20:1223,56039,179,57619,697,0001,036,0002,392,064
6Apr 21, 2026 20:1223,76337,618,00118,921,0001,991,0002,330,624
7Apr 21, 2026 20:1224,11441,162,98720,211,0001,010,0002,379,776
8Apr 21, 2026 20:1224,20237,297,50720,284,0001,014,0002,383,872
9Apr 21, 2026 20:1224,24539,484,80120,320,0001,016,0002,383,872