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 listJan 30, 2026 21:39vahookvahookScore: 4,568Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2026 21:394,53619,293,7651,996,0001,996,0002,531,328
2Jan 30, 2026 21:394,54521,014,4042,000,0002,000,0002,486,272
3Jan 30, 2026 21:394,55019,970,7012,002,0002,002,0002,478,080
4Jan 30, 2026 21:394,55921,879,7612,006,0002,006,0002,277,376
5Jan 30, 2026 21:394,56822,141,0142,010,0002,010,0002,277,376
6Jan 30, 2026 21:394,58421,350,9592,017,0002,017,0002,486,272
7Jan 30, 2026 21:394,58422,910,3232,017,0002,017,0002,486,272
8Jan 30, 2026 21:394,58920,937,5672,019,0002,019,0002,482,176
9Jan 30, 2026 21:394,60721,327,8932,027,0002,027,0002,281,472