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 listFeb 20, 2026 23:05zielajzielajScore: 3,311Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2026 23:013,14319,332,3022,766,00002,437,120
2Feb 20, 2026 23:063,16516,499,7572,785,00002,277,376
3Feb 20, 2026 23:013,17319,410,7802,792,00002,277,376
4Feb 20, 2026 23:033,18119,450,9872,799,00002,433,024
5Feb 20, 2026 23:013,18418,558,6672,802,00002,428,928
6Feb 20, 2026 23:053,21617,607,6412,830,00002,277,376
7Feb 20, 2026 23:013,31119,043,5281,943,000971,0002,441,216
8Feb 20, 2026 23:063,31121,689,6991,943,000971,0002,433,024
9Feb 20, 2026 23:013,31325,560,8742,915,00002,437,120
10Feb 20, 2026 23:033,32023,492,0511,948,000974,0002,437,120
11Feb 20, 2026 23:053,32619,015,0752,927,00002,437,120
12Feb 20, 2026 23:053,32719,474,6882,928,00002,441,216
13Feb 20, 2026 23:013,34218,304,4541,961,000980,0002,437,120
14Feb 20, 2026 23:063,34920,922,0922,947,00002,277,376
15Feb 20, 2026 23:033,83319,998,8223,373,00002,428,928