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 22, 2026 17:38Victor MerckléVictor MerckléScore: 25,740Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 17:3925,05340,927,06720,043,0002,004,0002,383,872
2Apr 22, 2026 17:3925,32540,686,61121,273,0001,013,0002,383,872
3Apr 22, 2026 17:3925,35041,208,78121,294,0001,014,0002,322,432
4Apr 22, 2026 17:3925,43136,735,76221,363,0001,017,0002,387,968
5Apr 22, 2026 17:3925,74034,917,52821,623,0001,029,0002,318,336
6Apr 22, 2026 17:3925,79440,735,58321,668,0001,031,0002,387,968
7Apr 22, 2026 17:3925,82838,447,82321,696,0001,033,0002,383,872
8Apr 22, 2026 17:3925,90741,417,82721,763,0001,036,0002,379,776
9Apr 22, 2026 17:3926,00939,838,94120,898,0001,990,0002,375,680