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 17, 2026 07:01Josu San MartinJosu San MartinScore: 37,561Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 07:0137,42663,116,43030,939,0001,996,0002,453,504
2Jan 17, 2026 07:0037,43152,960,77832,939,00002,453,504
3Jan 17, 2026 07:0037,52353,139,26032,020,0001,000,0002,449,408
4Jan 17, 2026 07:0037,52855,379,86531,024,0002,001,0002,465,792
5Jan 17, 2026 07:0137,54857,308,52531,040,0002,002,0002,285,568
6Jan 17, 2026 07:0037,56057,203,84031,050,0002,003,0002,469,888
7Jan 17, 2026 07:0137,56152,887,84833,054,00002,457,600
8Jan 17, 2026 07:0037,57256,541,41231,060,0002,003,0002,453,504
9Jan 17, 2026 07:0137,57858,190,80031,065,0002,004,0002,375,680
10Jan 17, 2026 07:0037,64751,379,87931,122,0002,007,0002,445,312
11Jan 17, 2026 07:0137,66460,115,41931,136,0002,008,0002,445,312
12Jan 17, 2026 07:0137,73455,159,76630,188,0003,018,0002,363,392