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 listDec 14, 2024 21:15Yuriy LyfenkoYuriy LyfenkoScore: 10,075,392Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 21:159,722,0818,588,179,5208,507,474,00047,957,0002,514,944
2Dec 14, 2024 21:1510,075,3928,909,845,0258,823,407,00042,938,0002,514,944
3Dec 14, 2024 21:1510,152,9338,971,779,9668,896,638,00037,943,0002,260,992