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 9, 2026 21:41vahookvahookScore: 5,598Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2026 21:415,56520,904,2983,918,000979,0002,535,424
2Jan 9, 2026 21:415,57720,916,4733,927,000981,0002,449,408
3Jan 9, 2026 21:415,58030,461,3554,910,00002,433,024
4Jan 9, 2026 21:415,58023,486,2072,946,0001,964,0002,437,120
5Jan 9, 2026 21:415,59823,577,6484,926,00002,441,216
6Jan 9, 2026 21:415,59919,596,3583,942,000985,0002,445,312
7Jan 9, 2026 21:415,64524,719,5612,981,0001,987,0002,535,424
8Jan 9, 2026 21:415,65118,623,3673,979,000994,0002,449,408
9Jan 9, 2026 21:415,67618,769,8353,996,000999,0002,277,376