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 listAug 13, 2024 07:29Andrey LikhachevAndrey LikhachevScore: 90,616Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 13, 2024 07:2990,148161,489,92379,329,83502,191,360
2Aug 13, 2024 07:3890,432140,236,47779,579,75302,314,240
3Aug 13, 2024 07:3890,490138,853,09179,631,10202,191,360
4Aug 13, 2024 10:0590,573149,402,75379,704,66002,318,336
5Aug 13, 2024 10:0590,616147,509,53879,742,39302,310,144
6Aug 13, 2024 07:3890,639162,561,41879,762,26702,334,720
7Aug 13, 2024 10:0590,785153,390,44979,890,72702,322,432
8Aug 13, 2024 07:2990,809141,902,76579,912,25302,187,264
9Aug 13, 2024 07:2991,047149,309,96180,121,25102,187,264