In the early 1990s Stiller had minor roles in films such as Stella and Highway to Hell as well as a cameo in The Nutt House. In 1992 Stiller was approached to direct Reality Bites, based on a script by Helen Childress. Stiller devoted the next year and a half to rewriting the script with Childress, fundraising, and recruiting cast members for the film. It was eventually released in early 1994, directed by Stiller and featuring him as a co-star. The film was produced by Danny DeVito, who would later direct Stiller's 2003 film Duplex and produce his 2004 film Along Came Polly.
Reality Bites debuted as the highest-grossing film in its opening weekend and received mixed reviews.
Stiller joined his parents in the family film Heavyweights (1995), in which he played two roles, and then had a brief uncredited role in Adam Sandler's Happy Gilmore (1996). Next, he had lead roles in If Lucy Fell and Flirting with Disaster, before tackling his next directorial effort with The Cable Guy, which starred Jim Carrey. Stiller once again was featured in his own film, as twins. The film received mixed reviews, but was noted for paying the highest salary for an actor up to that point, as Carrey received $20 million for his work in the film. The film also connected Stiller with future Frat Pack members Jack Black and Owen Wilson.
Also in 1996, MTV invited Stiller to host the VH1 Fashion Awards. Along with SNL writer Drake Sather, Stiller developed a short film for the awards about a male model known as Derek Zoolander. It was so well received that he developed another short film about the character for the 1997 VH1 Fashion Awards and finally remade the skit into a film.
In 1998 Stiller put aside his directing ambitions to star in a surprise hit with a long-lasting cult following, the Farrelly Brothers' There's Something About Mary, alongside Cameron Diaz. That year, he starred in several dramas, including Zero Effect, Your Friends & Neighbors, and Permanent Midnight. He was invited to take part in hosting the Music Video awards, for which he developed a parody of the Backstreet Boys and performed a sketch with his father, commenting on his current career.
In 1999 he starred in three films, including Mystery Men, where he played a superhero wannabe called Mr. Furious. He returned to directing with a new spoof television series for Fox titled Heat Vision and Jack, starring Jack Black; however, the show was not picked up by Fox after its pilot episode and the series was cancelled.
In 2000, Stiller starred in three more films, including one of his most recognizable roles, a male nurse named Gaylord "Greg" Focker in Meet the Parents, opposite Robert De Niro. The film was well received by critics, grossed over $330 million worldwide, and spawned two sequels. Also in 2000, MTV again invited Stiller to make another short film, and he developed Mission: Improbable, a spoof of Tom Cruise's role in Mission: Impossible II and other films.
In 2001, Stiller directed his third feature film, Zoolander, starring himself as Derek Zoolander. The film featured multiple cameos from a variety of celebrities, including Donald Trump, Paris Hilton, Lenny Kravitz, Heidi Klum, and David Bowie, among others. The film was banned in Malaysia (as the plot centered on an assassination attempt of a Malaysian prime minister),[52] while shots of the World Trade Center were digitally removed and hidden for the film's release after the September 11 terrorist attacks.
After Stiller worked with Owen Wilson in Zoolander, they joined together again for The Royal Tenenbaums.
Over the next two years, Stiller continued with the lackluster box office film Duplex, and cameos in Orange County and Nobody Knows Anything! He has guest-starred on several television shows, including an appearance in an episode of the television series The King of Queens in a flashback as the father of the character Arthur (played by Jerry Stiller). He also made a guest appearance on World Wrestling Entertainment's WWE Raw.
In 2004, Stiller appeared in six different films, all of which were comedies, and include some of his highest-grossing films: Starsky & Hutch, Envy, DodgeBall: A True Underdog Story, Anchorman: The Legend of Ron Burgundy (in which he had an uncredited cameo), Along Came Polly and Meet the Fockers. While the critical flop Envy only grossed $14.5 million,[60] the most successful film of these was Meet the Fockers, which grossed over $516.6 million worldwide.
He also made extended guest appearances on Curb Your Enthusiasm and Arrested Development in the same year. In 2005, Stiller appeared in Madagascar, which was his first experience as a voice actor in an animated film. Madagascar was a massive worldwide hit, and spawned the sequels Madagascar: Escape 2 Africa in 2008 and Madagascar 3: Europe's Most Wanted in 2012.
In 2006, Stiller had cameo roles in School for Scoundrels and Tenacious D in The Pick of Destiny; he was executive producer of the latter. In December 2006, he had the lead role in Night at the Museum. Although not a critical favorite, it earned over $115 million in ten days.
In 2007, Stiller starred alongside Malin Åkerman in the romantic comedy The Heartbreak Kid. The film earned over $100 million worldwide despite receiving mostly negative reviews.
In 2008, Stiller directed, co-wrote, co-produced, and starred in the film Tropic Thunder, with Robert Downey Jr. and Jack Black; Stiller had originally conceived of the film's premise while filming Empire of the Sun in 1987.
In 2009, he starred with Amy Adams in , sequel to Night at the Museum.
In 2010, Stiller made a brief cameo in Joaquin Phoenix's mockumentary I'm Still Here and played the lead role in the comedy-drama Greenberg. He again portrayed Greg Focker in the critically panned but financially successful Little Fockers, the second sequel to Meet the Parents. He had planned to voice the main character in Megamind, but later dropped out while still remaining a producer and voicing a minor character in the film.
In 2011, Stiller starred with Eddie Murphy and Alan Alda in Tower Heist, about a group of maintenance workers planning a heist in a residential skyscraper. He produced, directed, and starred in The Secret Life of Walter Mitty, which was released in 2013.
In 2018 and 2019, Stiller played Michael Cohen on Saturday Night Live for 6 episodes.
In October 2016, Stiller revealed that he had been diagnosed with prostate cancer in June 2014. Following surgery, he received a cancer-free status in September 2014.
Ben Stillerat the Jonathan Ross Show.
Sieve of Eratosthenes
The Sieve of Eratosthenes is a simple way to find "all" the prime numbers up to some number "n":
When the algorithm is finished all the numbers that are left not crossed out are all the prime numbers from 2 up to "n".
As an optimization we can start the counting in step 3 from "p", and stop in step 2 when "p" is greater than "n".
This is allowed because for each number "k" that is smaller than "p", the number "kp" in step 3 will be already crossed out as part of the algorithm working for some previous prime that is smaller than "p" – the smallest such prime which divides "k" evenly.
Benjamin Franklin
Benjamin Franklin (January 17, 1706 – April 17, 1790) was an American statesman and scientist. He has also been known as "the First American". He was a very important person in the American Revolution and helped make the Thirteen Colonies one nation. As a leader of the Enlightenment, he influenced European scientists. He even was the first thing many Europeans associated with America at the time. His successful diplomacy in France was an important factor in the United States' win over Great Britain.