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 19:14Victor MerckléVictor MerckléScore: 25,078Success
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 19:1524,31042,591,57220,375,0001,018,0002,383,872
2Apr 21, 2026 19:1524,79641,749,94219,838,0001,983,0002,387,968
3Apr 21, 2026 19:1524,90338,768,82919,923,0001,992,0002,379,776
4Apr 21, 2026 19:1525,03042,830,05820,025,0002,002,0002,383,872
5Apr 21, 2026 19:1525,07836,790,59320,063,0002,006,0002,383,872
6Apr 21, 2026 19:1525,11942,033,37720,096,0002,009,0002,379,776
7Apr 21, 2026 19:1525,15639,354,58020,126,0002,012,0002,383,872
8Apr 21, 2026 19:1525,16545,391,09021,140,0001,006,0002,367,488
9Apr 21, 2026 19:1525,25343,879,18820,203,0002,020,0002,318,336