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 23, 2026 16:22Nanored4498Nanored4498Score: 37,482Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 16:2337,20053,160,86031,713,0001,023,0002,531,328
2Apr 23, 2026 16:2337,31749,421,69830,849,0001,990,0002,519,040
3Apr 23, 2026 16:2337,42247,946,67530,937,0001,995,0002,334,720
4Apr 23, 2026 16:2337,47850,337,44530,983,0001,998,0002,531,328
5Apr 23, 2026 16:2337,48250,362,77130,986,0001,999,0002,535,424
6Apr 23, 2026 16:2337,52347,854,87531,020,0002,001,0002,523,136
7Apr 23, 2026 16:2337,52855,066,99530,023,0003,002,0002,527,232
8Apr 23, 2026 16:2337,66149,141,32931,134,0002,008,0002,531,328
9Apr 23, 2026 16:2337,76851,509,97531,222,0002,014,0002,519,040