Good math features that emphasize the CPU

Anyone knows any good math functions that put a lot of stress on the CPU. I want to create a simple program that simply creates a load of X seconds, while another program controls it. I'm just looking for features, not real stress testing programs.

+4
source share
3 answers

Try the Lucas-Lemer test . This is what Prime95 uses, and Prime95 is pretty standard for testing processor voltage.

+2
source

A naive Fibonacci implementation? Sort of:

let fib = Seq.unfold(fun (p, c) -> Some((p, c), (c, p+c))) (1,1) 
0
source

Source: https://habr.com/ru/post/1342441/


All Articles