#!/bin/bash # bc is not threaded. This only tests 1 cpu echo "scale=$1; s(1)" | bc -l &>/dev/null