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 09:52Charles CabergsCharles CabergsScore: 25,079Success
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 09:5324,96946,638,99020,975,000998,0002,494,464
2Apr 21, 2026 09:5324,97644,661,75219,981,0001,998,0002,416,640
3Apr 21, 2026 09:5325,00944,559,40621,008,0001,000,0002,420,736
4Apr 21, 2026 09:5325,02642,482,66720,021,0002,002,0002,281,472
5Apr 21, 2026 09:5325,07945,446,49819,061,0003,009,0002,416,640
6Apr 21, 2026 09:5325,08842,566,09219,068,0003,010,0002,260,992
7Apr 21, 2026 09:5325,13747,015,29918,099,0004,022,0002,412,544
8Apr 21, 2026 09:5325,14543,948,21420,117,0002,011,0002,449,408
9Apr 21, 2026 09:5325,30241,491,11319,230,0003,036,0002,416,640