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 29, 2026 13:35TudyMTudyMScore: 35,878Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 13:3835,71047,637,96130,412,0001,013,0002,363,392
2Apr 29, 2026 13:3835,71748,860,99129,404,0002,027,0002,367,488
3Apr 29, 2026 13:3835,83548,471,47930,518,0001,017,0002,371,584
4Apr 29, 2026 13:3835,87647,514,14629,535,0002,036,0002,379,776
5Apr 29, 2026 13:3835,87844,978,08029,536,0002,037,0002,297,856
6Apr 29, 2026 13:3835,88247,958,08130,559,0001,018,0002,375,680
7Apr 29, 2026 13:3835,91949,476,00029,570,0002,039,0002,314,240
8Apr 29, 2026 13:3835,97250,472,21128,593,0003,063,0002,433,024
9Apr 29, 2026 13:3836,01845,224,96531,696,00002,408,448