how to system func bool unity

Code Example - how to system func bool unity

                
                        Task<bool> t1 = new Task<bool>(() => IsPrime(numberBeingTested));