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 27, 2026 19:58Charles CabergsCharles CabergsScore: 24,296Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 19:5924,18636,309,89720,271,0001,013,0002,478,080
2Apr 27, 2026 19:5924,20333,841,58920,285,0001,014,0002,473,984
3Apr 27, 2026 19:5924,21740,791,15520,246,0001,065,0002,478,080
4Apr 27, 2026 19:5924,27840,496,62220,348,0001,017,0002,478,080
5Apr 27, 2026 19:5924,29638,788,42920,363,0001,018,0002,478,080
6Apr 27, 2026 19:5924,31338,230,68020,378,0001,018,0002,473,984
7Apr 27, 2026 19:5924,31438,625,73918,341,0003,056,0002,473,984
8Apr 27, 2026 19:5924,32538,374,02920,387,0001,019,0002,482,176
9Apr 27, 2026 19:5924,32537,238,32320,387,0001,019,0002,478,080