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 14, 2026 12:25limanjun99limanjun99Score: 21,617Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 12:2521,54044,331,98617,958,000997,0002,367,488
2Apr 14, 2026 12:2521,58940,868,68216,999,0001,999,0002,424,832
3Apr 14, 2026 12:2521,59241,651,01717,001,0002,000,0002,277,376
4Apr 14, 2026 12:2521,59834,970,37617,006,0002,000,0002,445,312
5Apr 14, 2026 12:2521,61743,578,78317,021,0002,002,0002,494,464
6Apr 14, 2026 12:2522,22442,013,35718,528,0001,029,0002,363,392
7Apr 14, 2026 12:2522,24744,117,86418,547,0001,030,0002,441,216
8Apr 14, 2026 12:2522,25241,027,82818,552,0001,030,0002,363,392
9Apr 14, 2026 12:2522,31549,538,52717,570,0002,067,0002,437,120